OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_FULL_CODEGEN_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 Label* slow, Label* done); | 545 Label* slow, Label* done); |
546 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); | 546 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); |
547 void EmitVariableLoad(VariableProxy* proxy, | 547 void EmitVariableLoad(VariableProxy* proxy, |
548 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 548 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
549 | 549 |
550 void EmitAccessor(ObjectLiteralProperty* property); | 550 void EmitAccessor(ObjectLiteralProperty* property); |
551 | 551 |
552 bool NeedsHoleCheckForLoad(VariableProxy* proxy); | 552 bool NeedsHoleCheckForLoad(VariableProxy* proxy); |
553 | 553 |
554 // Expects the arguments and the function already pushed. | 554 // Expects the arguments and the function already pushed. |
555 void EmitResolvePossiblyDirectEval(Call* expr); | 555 void EmitResolvePossiblyDirectEval(int arg_count); |
556 | 556 |
557 // Platform-specific support for allocating a new closure based on | 557 // Platform-specific support for allocating a new closure based on |
558 // the given function info. | 558 // the given function info. |
559 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); | 559 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); |
560 | 560 |
561 // Re-usable portions of CallRuntime | 561 // Re-usable portions of CallRuntime |
562 void EmitLoadJSRuntimeFunction(CallRuntime* expr); | 562 void EmitLoadJSRuntimeFunction(CallRuntime* expr); |
563 void EmitCallJSRuntimeFunction(CallRuntime* expr); | 563 void EmitCallJSRuntimeFunction(CallRuntime* expr); |
564 | 564 |
565 // Load a value from a named property. | 565 // Load a value from a named property. |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 Address start_; | 1050 Address start_; |
1051 Address instruction_start_; | 1051 Address instruction_start_; |
1052 uint32_t length_; | 1052 uint32_t length_; |
1053 }; | 1053 }; |
1054 | 1054 |
1055 | 1055 |
1056 } // namespace internal | 1056 } // namespace internal |
1057 } // namespace v8 | 1057 } // namespace v8 |
1058 | 1058 |
1059 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1059 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |