Sha256: c9dc7d223d50d9cf132d84c0e9fdca1ad972842bca3efcc4880c4a04186e400f

Contents?: true

Size: 774 Bytes

Versions: 5

Compression:

Stored size: 774 Bytes

Contents

// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_ASMJS_SWITCH_LOGIC_H
#define V8_ASMJS_SWITCH_LOGIC_H

#include "src/globals.h"
#include "src/zone/zone-containers.h"
#include "src/zone/zone.h"

namespace v8 {
namespace internal {
namespace wasm {

struct CaseNode : public ZoneObject {
  const int begin;
  const int end;
  CaseNode* left;
  CaseNode* right;
  CaseNode(int begin, int end) : begin(begin), end(end) {
    left = nullptr;
    right = nullptr;
  }
};

V8_EXPORT_PRIVATE CaseNode* OrderCases(ZoneVector<int>* cases, Zone* zone);

}  // namespace wasm
}  // namespace internal
}  // namespace v8

#endif  // V8_ASMJS_SWITCH_LOGIC_H

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/asmjs/switch-logic.h
libv8-6.0.286.54.0 vendor/v8/src/asmjs/switch-logic.h
libv8-6.0.286.54.0beta2 vendor/v8/src/asmjs/switch-logic.h
libv8-6.0.286.54.0beta1 vendor/v8/src/asmjs/switch-logic.h
libv8-6.0.286.44.0beta1 vendor/v8/src/asmjs/switch-logic.h