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

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

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/full-codegen.h ('k') | src/hydrogen.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 // If the position recording did record a new position generate a debug 826 // If the position recording did record a new position generate a debug
827 // break slot to make the statement breakable. 827 // break slot to make the statement breakable.
828 if (position_recorded) { 828 if (position_recorded) {
829 DebugCodegen::GenerateSlot(masm_); 829 DebugCodegen::GenerateSlot(masm_);
830 } 830 }
831 } 831 }
832 } 832 }
833 833
834 834
835 void FullCodeGenerator::VisitSuperReference(SuperReference* super) { 835 void FullCodeGenerator::VisitSuperReference(SuperReference* super) {
836 DCHECK(FLAG_harmony_classes); 836 __ CallRuntime(Runtime::kThrowUnsupportedSuperError, 0);
837 UNIMPLEMENTED();
838 } 837 }
839 838
840 839
841 void FullCodeGenerator::SetExpressionPosition(Expression* expr) { 840 void FullCodeGenerator::SetExpressionPosition(Expression* expr) {
842 if (!info_->is_debug()) { 841 if (!info_->is_debug()) {
843 CodeGenerator::RecordPositions(masm_, expr->position()); 842 CodeGenerator::RecordPositions(masm_, expr->position());
844 } else { 843 } else {
845 // Check if the expression will be breakable without adding a debug break 844 // Check if the expression will be breakable without adding a debug break
846 // slot. 845 // slot.
847 BreakableStatementChecker checker(zone()); 846 BreakableStatementChecker checker(zone());
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 } 1710 }
1712 return true; 1711 return true;
1713 } 1712 }
1714 #endif // DEBUG 1713 #endif // DEBUG
1715 1714
1716 1715
1717 #undef __ 1716 #undef __
1718 1717
1719 1718
1720 } } // namespace v8::internal 1719 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698