| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_ | 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_ |
| 6 #define V8_COMPILER_MACHINE_OPERATOR_H_ | 6 #define V8_COMPILER_MACHINE_OPERATOR_H_ |
| 7 | 7 |
| 8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
| 9 #include "src/machine-type.h" | 9 #include "src/machine-type.h" |
| 10 | 10 |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 const Operator* Load(LoadRepresentation rep); | 306 const Operator* Load(LoadRepresentation rep); |
| 307 | 307 |
| 308 // store [base + index], value | 308 // store [base + index], value |
| 309 const Operator* Store(StoreRepresentation rep); | 309 const Operator* Store(StoreRepresentation rep); |
| 310 | 310 |
| 311 const Operator* StackSlot(MachineRepresentation rep); | 311 const Operator* StackSlot(MachineRepresentation rep); |
| 312 | 312 |
| 313 // Access to the machine stack. | 313 // Access to the machine stack. |
| 314 const Operator* LoadStackPointer(); | 314 const Operator* LoadStackPointer(); |
| 315 const Operator* LoadFramePointer(); | 315 const Operator* LoadFramePointer(); |
| 316 const Operator* LoadParentFramePointer(); |
| 316 | 317 |
| 317 // checked-load heap, index, length | 318 // checked-load heap, index, length |
| 318 const Operator* CheckedLoad(CheckedLoadRepresentation); | 319 const Operator* CheckedLoad(CheckedLoadRepresentation); |
| 319 // checked-store heap, index, length, value | 320 // checked-store heap, index, length, value |
| 320 const Operator* CheckedStore(CheckedStoreRepresentation); | 321 const Operator* CheckedStore(CheckedStoreRepresentation); |
| 321 | 322 |
| 322 // Target machine word-size assumed by this builder. | 323 // Target machine word-size assumed by this builder. |
| 323 bool Is32() const { return word() == MachineRepresentation::kWord32; } | 324 bool Is32() const { return word() == MachineRepresentation::kWord32; } |
| 324 bool Is64() const { return word() == MachineRepresentation::kWord64; } | 325 bool Is64() const { return word() == MachineRepresentation::kWord64; } |
| 325 MachineRepresentation word() const { return word_; } | 326 MachineRepresentation word() const { return word_; } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 }; | 363 }; |
| 363 | 364 |
| 364 | 365 |
| 365 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 366 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 366 | 367 |
| 367 } // namespace compiler | 368 } // namespace compiler |
| 368 } // namespace internal | 369 } // namespace internal |
| 369 } // namespace v8 | 370 } // namespace v8 |
| 370 | 371 |
| 371 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 372 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |