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

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

Issue 642603006: X87: Implement the new semantics for 'super(...)' (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | 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 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2941 matching lines...) Expand 10 before | Expand all | Expand 10 after
2952 { 2952 {
2953 PreservePositionScope scope(masm()->positions_recorder()); 2953 PreservePositionScope scope(masm()->positions_recorder());
2954 VisitForStackValue(property->obj()); 2954 VisitForStackValue(property->obj());
2955 } 2955 }
2956 if (is_named_call) { 2956 if (is_named_call) {
2957 EmitCallWithLoadIC(expr); 2957 EmitCallWithLoadIC(expr);
2958 } else { 2958 } else {
2959 EmitKeyedCallWithLoadIC(expr, property->key()); 2959 EmitKeyedCallWithLoadIC(expr, property->key());
2960 } 2960 }
2961 } 2961 }
2962 } else if (call_type == Call::SUPER_CALL) {
2963 SuperReference* super_ref = callee->AsSuperReference();
2964 DCHECK(super_ref != NULL);
2965 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
2966 __ CallRuntime(Runtime::kGetPrototype, 1);
2967 __ push(result_register());
2968 VisitForStackValue(super_ref->this_var());
2969 EmitCall(expr, CallICState::METHOD);
2962 } else { 2970 } else {
2963 DCHECK(call_type == Call::OTHER_CALL); 2971 DCHECK(call_type == Call::OTHER_CALL);
2964 // Call to an arbitrary expression not handled specially above. 2972 // Call to an arbitrary expression not handled specially above.
2965 { PreservePositionScope scope(masm()->positions_recorder()); 2973 { PreservePositionScope scope(masm()->positions_recorder());
2966 VisitForStackValue(callee); 2974 VisitForStackValue(callee);
2967 } 2975 }
2968 __ push(Immediate(isolate()->factory()->undefined_value())); 2976 __ push(Immediate(isolate()->factory()->undefined_value()));
2969 // Emit function call. 2977 // Emit function call.
2970 EmitCall(expr); 2978 EmitCall(expr);
2971 } 2979 }
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after
5121 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5129 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5122 Assembler::target_address_at(call_target_address, 5130 Assembler::target_address_at(call_target_address,
5123 unoptimized_code)); 5131 unoptimized_code));
5124 return OSR_AFTER_STACK_CHECK; 5132 return OSR_AFTER_STACK_CHECK;
5125 } 5133 }
5126 5134
5127 5135
5128 } } // namespace v8::internal 5136 } } // namespace v8::internal
5129 5137
5130 #endif // V8_TARGET_ARCH_X87 5138 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698