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

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

Issue 689543002: X87: Use shared function info for eval cache key. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 1 month 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 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after
2837 2837
2838 2838
2839 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { 2839 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
2840 // Push copy of the first argument or undefined if it doesn't exist. 2840 // Push copy of the first argument or undefined if it doesn't exist.
2841 if (arg_count > 0) { 2841 if (arg_count > 0) {
2842 __ push(Operand(esp, arg_count * kPointerSize)); 2842 __ push(Operand(esp, arg_count * kPointerSize));
2843 } else { 2843 } else {
2844 __ push(Immediate(isolate()->factory()->undefined_value())); 2844 __ push(Immediate(isolate()->factory()->undefined_value()));
2845 } 2845 }
2846 2846
2847 // Push the enclosing function.
2848 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
2847 // Push the receiver of the enclosing function. 2849 // Push the receiver of the enclosing function.
2848 __ push(Operand(ebp, (2 + info_->scope()->num_parameters()) * kPointerSize)); 2850 __ push(Operand(ebp, (2 + info_->scope()->num_parameters()) * kPointerSize));
2849 // Push the language mode. 2851 // Push the language mode.
2850 __ push(Immediate(Smi::FromInt(strict_mode()))); 2852 __ push(Immediate(Smi::FromInt(strict_mode())));
2851 2853
2852 // Push the start position of the scope the calls resides in. 2854 // Push the start position of the scope the calls resides in.
2853 __ push(Immediate(Smi::FromInt(scope()->start_position()))); 2855 __ push(Immediate(Smi::FromInt(scope()->start_position())));
2854 2856
2855 // Do the runtime call. 2857 // Do the runtime call.
2856 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); 2858 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6);
2857 } 2859 }
2858 2860
2859 2861
2860 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) { 2862 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) {
2861 DCHECK(super_ref != NULL); 2863 DCHECK(super_ref != NULL);
2862 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 2864 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
2863 __ CallRuntime(Runtime::kGetPrototype, 1); 2865 __ CallRuntime(Runtime::kGetPrototype, 1);
2864 } 2866 }
2865 2867
2866 2868
(...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after
5145 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5147 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5146 Assembler::target_address_at(call_target_address, 5148 Assembler::target_address_at(call_target_address,
5147 unoptimized_code)); 5149 unoptimized_code));
5148 return OSR_AFTER_STACK_CHECK; 5150 return OSR_AFTER_STACK_CHECK;
5149 } 5151 }
5150 5152
5151 5153
5152 } } // namespace v8::internal 5154 } } // namespace v8::internal
5153 5155
5154 #endif // V8_TARGET_ARCH_X87 5156 #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