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_H_ | 5 #ifndef V8_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 void EmitAssignment(Expression* expr); | 543 void EmitAssignment(Expression* expr); |
544 | 544 |
545 // Complete a variable assignment. The right-hand-side value is expected | 545 // Complete a variable assignment. The right-hand-side value is expected |
546 // in the accumulator. | 546 // in the accumulator. |
547 void EmitVariableAssignment(Variable* var, | 547 void EmitVariableAssignment(Variable* var, |
548 Token::Value op); | 548 Token::Value op); |
549 | 549 |
550 // Helper functions to EmitVariableAssignment | 550 // Helper functions to EmitVariableAssignment |
551 void EmitStoreToStackLocalOrContextSlot(Variable* var, | 551 void EmitStoreToStackLocalOrContextSlot(Variable* var, |
552 MemOperand location); | 552 MemOperand location); |
553 void EmitCallStoreContextSlot(Handle<String> name, StrictMode strict_mode); | |
554 | 553 |
555 // Complete a named property assignment. The receiver is expected on top | 554 // Complete a named property assignment. The receiver is expected on top |
556 // of the stack and the right-hand-side value in the accumulator. | 555 // of the stack and the right-hand-side value in the accumulator. |
557 void EmitNamedPropertyAssignment(Assignment* expr); | 556 void EmitNamedPropertyAssignment(Assignment* expr); |
558 | 557 |
559 // Complete a keyed property assignment. The receiver and key are | 558 // Complete a keyed property assignment. The receiver and key are |
560 // expected on top of the stack and the right-hand-side value in the | 559 // expected on top of the stack and the right-hand-side value in the |
561 // accumulator. | 560 // accumulator. |
562 void EmitKeyedPropertyAssignment(Assignment* expr); | 561 void EmitKeyedPropertyAssignment(Assignment* expr); |
563 | 562 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 | 942 |
944 Address start_; | 943 Address start_; |
945 Address instruction_start_; | 944 Address instruction_start_; |
946 uint32_t length_; | 945 uint32_t length_; |
947 }; | 946 }; |
948 | 947 |
949 | 948 |
950 } } // namespace v8::internal | 949 } } // namespace v8::internal |
951 | 950 |
952 #endif // V8_FULL_CODEGEN_H_ | 951 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |