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

Side by Side Diff: src/x87/full-codegen-x87.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/x87/code-stubs-x87.cc ('k') | test/cctest/test-heap.cc » ('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_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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 251 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
252 --num_parameters; 252 --num_parameters;
253 ++rest_index; 253 ++rest_index;
254 } 254 }
255 255
256 __ lea(edx, 256 __ lea(edx,
257 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); 257 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset));
258 __ push(edx); 258 __ push(edx);
259 __ push(Immediate(Smi::FromInt(num_parameters))); 259 __ push(Immediate(Smi::FromInt(num_parameters)));
260 __ push(Immediate(Smi::FromInt(rest_index))); 260 __ push(Immediate(Smi::FromInt(rest_index)));
261 __ push(Immediate(Smi::FromInt(language_mode())));
261 262
262 RestParamAccessStub stub(isolate()); 263 RestParamAccessStub stub(isolate());
263 __ CallStub(&stub); 264 __ CallStub(&stub);
264 265
265 SetVar(rest_param, eax, ebx, edx); 266 SetVar(rest_param, eax, ebx, edx);
266 } 267 }
267 268
268 Variable* arguments = scope()->arguments(); 269 Variable* arguments = scope()->arguments();
269 if (arguments != NULL) { 270 if (arguments != NULL) {
270 // Function uses arguments object. 271 // Function uses arguments object.
(...skipping 5107 matching lines...) Expand 10 before | Expand all | Expand 10 after
5378 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5379 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5379 Assembler::target_address_at(call_target_address, 5380 Assembler::target_address_at(call_target_address,
5380 unoptimized_code)); 5381 unoptimized_code));
5381 return OSR_AFTER_STACK_CHECK; 5382 return OSR_AFTER_STACK_CHECK;
5382 } 5383 }
5383 5384
5384 5385
5385 } } // namespace v8::internal 5386 } } // namespace v8::internal
5386 5387
5387 #endif // V8_TARGET_ARCH_X87 5388 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698