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

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

Issue 678843004: Use shared function info for eval cache key. (Closed) Base URL: https://v8.googlecode.com/svn/branches/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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/objects.h » ('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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
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 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after
2850 2850
2851 2851
2852 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { 2852 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
2853 // Push copy of the first argument or undefined if it doesn't exist. 2853 // Push copy of the first argument or undefined if it doesn't exist.
2854 if (arg_count > 0) { 2854 if (arg_count > 0) {
2855 __ push(Operand(esp, arg_count * kPointerSize)); 2855 __ push(Operand(esp, arg_count * kPointerSize));
2856 } else { 2856 } else {
2857 __ push(Immediate(isolate()->factory()->undefined_value())); 2857 __ push(Immediate(isolate()->factory()->undefined_value()));
2858 } 2858 }
2859 2859
2860 // Push the enclosing function.
2861 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
2860 // Push the receiver of the enclosing function. 2862 // Push the receiver of the enclosing function.
2861 __ push(Operand(ebp, (2 + info_->scope()->num_parameters()) * kPointerSize)); 2863 __ push(Operand(ebp, (2 + info_->scope()->num_parameters()) * kPointerSize));
2862 // Push the language mode. 2864 // Push the language mode.
2863 __ push(Immediate(Smi::FromInt(strict_mode()))); 2865 __ push(Immediate(Smi::FromInt(strict_mode())));
2864 2866
2865 // Push the start position of the scope the calls resides in. 2867 // Push the start position of the scope the calls resides in.
2866 __ push(Immediate(Smi::FromInt(scope()->start_position()))); 2868 __ push(Immediate(Smi::FromInt(scope()->start_position())));
2867 2869
2868 // Do the runtime call. 2870 // Do the runtime call.
2869 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); 2871 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6);
2870 } 2872 }
2871 2873
2872 2874
2873 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) { 2875 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) {
2874 DCHECK(super_ref != NULL); 2876 DCHECK(super_ref != NULL);
2875 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 2877 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
2876 __ CallRuntime(Runtime::kGetPrototype, 1); 2878 __ CallRuntime(Runtime::kGetPrototype, 1);
2877 } 2879 }
2878 2880
2879 2881
(...skipping 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after
5159 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5161 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5160 Assembler::target_address_at(call_target_address, 5162 Assembler::target_address_at(call_target_address,
5161 unoptimized_code)); 5163 unoptimized_code));
5162 return OSR_AFTER_STACK_CHECK; 5164 return OSR_AFTER_STACK_CHECK;
5163 } 5165 }
5164 5166
5165 5167
5166 } } // namespace v8::internal 5168 } } // namespace v8::internal
5167 5169
5168 #endif // V8_TARGET_ARCH_IA32 5170 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698