Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: src/full-codegen.h

Issue 527963002: Implement loads and calls from 'super' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased before landing Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 // like try/catch, try/finally, etc, running the finallies and unwinding the 470 // like try/catch, try/finally, etc, running the finallies and unwinding the
471 // handlers as needed. 471 // handlers as needed.
472 void EmitUnwindBeforeReturn(); 472 void EmitUnwindBeforeReturn();
473 473
474 // Platform-specific return sequence 474 // Platform-specific return sequence
475 void EmitReturnSequence(); 475 void EmitReturnSequence();
476 476
477 // Platform-specific code sequences for calls 477 // Platform-specific code sequences for calls
478 void EmitCall(Call* expr, CallICState::CallType = CallICState::FUNCTION); 478 void EmitCall(Call* expr, CallICState::CallType = CallICState::FUNCTION);
479 void EmitCallWithLoadIC(Call* expr); 479 void EmitCallWithLoadIC(Call* expr);
480 void EmitSuperCallWithLoadIC(Call* expr);
480 void EmitKeyedCallWithLoadIC(Call* expr, Expression* key); 481 void EmitKeyedCallWithLoadIC(Call* expr, Expression* key);
481 482
482 // Platform-specific code for inline runtime calls. 483 // Platform-specific code for inline runtime calls.
483 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); 484 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id);
484 485
485 void EmitInlineRuntimeCall(CallRuntime* expr); 486 void EmitInlineRuntimeCall(CallRuntime* expr);
486 487
487 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ 488 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \
488 void Emit##name(CallRuntime* expr); 489 void Emit##name(CallRuntime* expr);
489 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) 490 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL)
(...skipping 23 matching lines...) Expand all
513 // Platform-specific support for allocating a new closure based on 514 // Platform-specific support for allocating a new closure based on
514 // the given function info. 515 // the given function info.
515 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); 516 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure);
516 517
517 // Platform-specific support for compiling assignments. 518 // Platform-specific support for compiling assignments.
518 519
519 // Load a value from a named property. 520 // Load a value from a named property.
520 // The receiver is left on the stack by the IC. 521 // The receiver is left on the stack by the IC.
521 void EmitNamedPropertyLoad(Property* expr); 522 void EmitNamedPropertyLoad(Property* expr);
522 523
524 void EmitNamedSuperPropertyLoad(Property* expr);
525
523 // Load a value from a keyed property. 526 // Load a value from a keyed property.
524 // The receiver and the key is left on the stack by the IC. 527 // The receiver and the key is left on the stack by the IC.
525 void EmitKeyedPropertyLoad(Property* expr); 528 void EmitKeyedPropertyLoad(Property* expr);
526 529
527 // Apply the compound assignment operator. Expects the left operand on top 530 // Apply the compound assignment operator. Expects the left operand on top
528 // of the stack and the right one in the accumulator. 531 // of the stack and the right one in the accumulator.
529 void EmitBinaryOp(BinaryOperation* expr, 532 void EmitBinaryOp(BinaryOperation* expr,
530 Token::Value op, 533 Token::Value op,
531 OverwriteMode mode); 534 OverwriteMode mode);
532 535
(...skipping 20 matching lines...) Expand all
553 556
554 // Complete a named property assignment. The receiver is expected on top 557 // Complete a named property assignment. The receiver is expected on top
555 // of the stack and the right-hand-side value in the accumulator. 558 // of the stack and the right-hand-side value in the accumulator.
556 void EmitNamedPropertyAssignment(Assignment* expr); 559 void EmitNamedPropertyAssignment(Assignment* expr);
557 560
558 // Complete a keyed property assignment. The receiver and key are 561 // Complete a keyed property assignment. The receiver and key are
559 // expected on top of the stack and the right-hand-side value in the 562 // expected on top of the stack and the right-hand-side value in the
560 // accumulator. 563 // accumulator.
561 void EmitKeyedPropertyAssignment(Assignment* expr); 564 void EmitKeyedPropertyAssignment(Assignment* expr);
562 565
566 void EmitLoadHomeObject(SuperReference* expr);
567
563 void CallIC(Handle<Code> code, 568 void CallIC(Handle<Code> code,
564 TypeFeedbackId id = TypeFeedbackId::None()); 569 TypeFeedbackId id = TypeFeedbackId::None());
565 570
566 void CallLoadIC(ContextualMode mode, 571 void CallLoadIC(ContextualMode mode,
567 TypeFeedbackId id = TypeFeedbackId::None()); 572 TypeFeedbackId id = TypeFeedbackId::None());
568 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); 573 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None());
569 574
570 void SetFunctionPosition(FunctionLiteral* fun); 575 void SetFunctionPosition(FunctionLiteral* fun);
571 void SetReturnPosition(FunctionLiteral* fun); 576 void SetReturnPosition(FunctionLiteral* fun);
572 void SetStatementPosition(Statement* stmt); 577 void SetStatementPosition(Statement* stmt);
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 947
943 Address start_; 948 Address start_;
944 Address instruction_start_; 949 Address instruction_start_;
945 uint32_t length_; 950 uint32_t length_;
946 }; 951 };
947 952
948 953
949 } } // namespace v8::internal 954 } } // namespace v8::internal
950 955
951 #endif // V8_FULL_CODEGEN_H_ 956 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698