Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_CODE_STUB_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| 7 | 7 |
| 8 // Clients of this interface shouldn't depend on lots of compiler internals. | 8 // Clients of this interface shouldn't depend on lots of compiler internals. |
| 9 // Do not include anything from src/compiler here! | 9 // Do not include anything from src/compiler here! |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| 11 #include "src/builtins.h" | 11 #include "src/builtins.h" |
| 12 #include "src/machine-type.h" | |
| 12 #include "src/runtime/runtime.h" | 13 #include "src/runtime/runtime.h" |
| 13 | 14 |
| 14 namespace v8 { | 15 namespace v8 { |
| 15 namespace internal { | 16 namespace internal { |
| 16 | 17 |
| 17 class CallInterfaceDescriptor; | 18 class CallInterfaceDescriptor; |
| 18 class Isolate; | 19 class Isolate; |
| 19 class Zone; | 20 class Zone; |
| 20 | 21 |
| 21 namespace compiler { | 22 namespace compiler { |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 36 | 37 |
| 37 Handle<Code> GenerateCode(); | 38 Handle<Code> GenerateCode(); |
| 38 | 39 |
| 39 // Constants. | 40 // Constants. |
| 40 Node* Int32Constant(int value); | 41 Node* Int32Constant(int value); |
| 41 Node* IntPtrConstant(intptr_t value); | 42 Node* IntPtrConstant(intptr_t value); |
| 42 Node* NumberConstant(double value); | 43 Node* NumberConstant(double value); |
| 43 Node* HeapConstant(Handle<HeapObject> object); | 44 Node* HeapConstant(Handle<HeapObject> object); |
| 44 Node* BooleanConstant(bool value); | 45 Node* BooleanConstant(bool value); |
| 45 | 46 |
| 47 // Memory Operations. | |
| 48 Node* Load(MachineType rep, Node* base); | |
| 49 Node* Load(MachineType rep, Node* base, Node* index); | |
| 50 | |
| 46 Node* Parameter(int value); | 51 Node* Parameter(int value); |
| 52 Node* StackArg(Node* num_args, int value); | |
| 53 Node* StackArgOrUndefined(Node* num_args, int value); | |
|
Jarin
2016/02/03 09:04:07
You should not need this, just use Parameter.
binji
2016/02/03 22:09:02
This doesn't seem to work, perhaps I'm doing it wr
Jarin
2016/02/04 05:28:01
We looked at this with Benedikt and it looks like
binji
2016/02/05 02:53:01
Thanks, that works. Done!
| |
| 47 void Return(Node* value); | 54 void Return(Node* value); |
| 48 | 55 |
| 49 // Tag and untag Smi values. | 56 // Tag and untag Smi values. |
| 50 Node* SmiTag(Node* value); | 57 Node* SmiTag(Node* value); |
| 51 Node* SmiUntag(Node* value); | 58 Node* SmiUntag(Node* value); |
| 52 | 59 |
| 53 // Basic arithmetic operations. | 60 // Basic arithmetic operations. |
| 54 Node* IntPtrAdd(Node* a, Node* b); | 61 Node* IntPtrAdd(Node* a, Node* b); |
| 55 Node* IntPtrSub(Node* a, Node* b); | 62 Node* IntPtrSub(Node* a, Node* b); |
| 56 Node* WordShl(Node* value, int shift); | 63 Node* WordShl(Node* value, int shift); |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 87 bool code_generated_; | 94 bool code_generated_; |
| 88 | 95 |
| 89 DISALLOW_COPY_AND_ASSIGN(CodeStubAssembler); | 96 DISALLOW_COPY_AND_ASSIGN(CodeStubAssembler); |
| 90 }; | 97 }; |
| 91 | 98 |
| 92 } // namespace compiler | 99 } // namespace compiler |
| 93 } // namespace internal | 100 } // namespace internal |
| 94 } // namespace v8 | 101 } // namespace v8 |
| 95 | 102 |
| 96 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 103 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |