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

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

Issue 1151853003: [strong] create strong array literals Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix a test Created 5 years, 7 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 | « src/ia32/code-stubs-ia32.cc ('k') | src/isolate.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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 254 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
255 --num_parameters; 255 --num_parameters;
256 ++rest_index; 256 ++rest_index;
257 } 257 }
258 258
259 __ lea(edx, 259 __ lea(edx,
260 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); 260 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset));
261 __ push(edx); 261 __ push(edx);
262 __ push(Immediate(Smi::FromInt(num_parameters))); 262 __ push(Immediate(Smi::FromInt(num_parameters)));
263 __ push(Immediate(Smi::FromInt(rest_index))); 263 __ push(Immediate(Smi::FromInt(rest_index)));
264 __ push(Immediate(Smi::FromInt(language_mode())));
264 265
265 RestParamAccessStub stub(isolate()); 266 RestParamAccessStub stub(isolate());
266 __ CallStub(&stub); 267 __ CallStub(&stub);
267 268
268 SetVar(rest_param, eax, ebx, edx); 269 SetVar(rest_param, eax, ebx, edx);
269 } 270 }
270 271
271 Variable* arguments = scope()->arguments(); 272 Variable* arguments = scope()->arguments();
272 if (arguments != NULL) { 273 if (arguments != NULL) {
273 // Function uses arguments object. 274 // Function uses arguments object.
(...skipping 5103 matching lines...) Expand 10 before | Expand all | Expand 10 after
5377 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5378 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5378 Assembler::target_address_at(call_target_address, 5379 Assembler::target_address_at(call_target_address,
5379 unoptimized_code)); 5380 unoptimized_code));
5380 return OSR_AFTER_STACK_CHECK; 5381 return OSR_AFTER_STACK_CHECK;
5381 } 5382 }
5382 5383
5383 5384
5384 } } // namespace v8::internal 5385 } } // namespace v8::internal
5385 5386
5386 #endif // V8_TARGET_ARCH_IA32 5387 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698