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

Side by Side Diff: src/x64/full-codegen-x64.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/x64/code-stubs-x64.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_X64 7 #if V8_TARGET_ARCH_X64
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 250 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
251 --num_parameters; 251 --num_parameters;
252 ++rest_index; 252 ++rest_index;
253 } 253 }
254 254
255 __ leap(rdx, 255 __ leap(rdx,
256 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset)); 256 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset));
257 __ Push(rdx); 257 __ Push(rdx);
258 __ Push(Smi::FromInt(num_parameters)); 258 __ Push(Smi::FromInt(num_parameters));
259 __ Push(Smi::FromInt(rest_index)); 259 __ Push(Smi::FromInt(rest_index));
260 __ Push(Smi::FromInt(language_mode()));
260 261
261 RestParamAccessStub stub(isolate()); 262 RestParamAccessStub stub(isolate());
262 __ CallStub(&stub); 263 __ CallStub(&stub);
263 264
264 SetVar(rest_param, rax, rbx, rdx); 265 SetVar(rest_param, rax, rbx, rdx);
265 } 266 }
266 267
267 // Possibly allocate an arguments object. 268 // Possibly allocate an arguments object.
268 Variable* arguments = scope()->arguments(); 269 Variable* arguments = scope()->arguments();
269 if (arguments != NULL) { 270 if (arguments != NULL) {
(...skipping 5125 matching lines...) Expand 10 before | Expand all | Expand 10 after
5395 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5396 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5396 Assembler::target_address_at(call_target_address, 5397 Assembler::target_address_at(call_target_address,
5397 unoptimized_code)); 5398 unoptimized_code));
5398 return OSR_AFTER_STACK_CHECK; 5399 return OSR_AFTER_STACK_CHECK;
5399 } 5400 }
5400 5401
5401 5402
5402 } } // namespace v8::internal 5403 } } // namespace v8::internal
5403 5404
5404 #endif // V8_TARGET_ARCH_X64 5405 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698