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

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

Issue 1152093003: [strong] create strong array literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback Created 5 years, 6 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 259 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
260 --num_parameters; 260 --num_parameters;
261 ++rest_index; 261 ++rest_index;
262 } 262 }
263 263
264 __ lea(edx, 264 __ lea(edx,
265 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); 265 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset));
266 __ push(edx); 266 __ push(edx);
267 __ push(Immediate(Smi::FromInt(num_parameters))); 267 __ push(Immediate(Smi::FromInt(num_parameters)));
268 __ push(Immediate(Smi::FromInt(rest_index))); 268 __ push(Immediate(Smi::FromInt(rest_index)));
269 __ push(Immediate(Smi::FromInt(language_mode())));
269 270
270 RestParamAccessStub stub(isolate()); 271 RestParamAccessStub stub(isolate());
271 __ CallStub(&stub); 272 __ CallStub(&stub);
272 273
273 SetVar(rest_param, eax, ebx, edx); 274 SetVar(rest_param, eax, ebx, edx);
274 } 275 }
275 276
276 Variable* arguments = scope()->arguments(); 277 Variable* arguments = scope()->arguments();
277 if (arguments != NULL) { 278 if (arguments != NULL) {
278 // Function uses arguments object. 279 // Function uses arguments object.
(...skipping 5157 matching lines...) Expand 10 before | Expand all | Expand 10 after
5436 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5437 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5437 Assembler::target_address_at(call_target_address, 5438 Assembler::target_address_at(call_target_address,
5438 unoptimized_code)); 5439 unoptimized_code));
5439 return OSR_AFTER_STACK_CHECK; 5440 return OSR_AFTER_STACK_CHECK;
5440 } 5441 }
5441 5442
5442 5443
5443 } } // namespace v8::internal 5444 } } // namespace v8::internal
5444 5445
5445 #endif // V8_TARGET_ARCH_IA32 5446 #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