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

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 947683002: Reimplement Maps and Sets in JS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename all the things, add more macros, and remove unnecessary %_CallFunctions Created 5 years, 9 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 if (result_size() > 1) { 2448 if (result_size() > 1) {
2449 DCHECK_EQ(2, result_size()); 2449 DCHECK_EQ(2, result_size());
2450 // Read result values stored on stack. Result is stored 2450 // Read result values stored on stack. Result is stored
2451 // above the four argument mirror slots and the two 2451 // above the four argument mirror slots and the two
2452 // Arguments object slots. 2452 // Arguments object slots.
2453 __ movq(rax, Operand(rsp, 6 * kRegisterSize)); 2453 __ movq(rax, Operand(rsp, 6 * kRegisterSize));
2454 __ movq(rdx, Operand(rsp, 7 * kRegisterSize)); 2454 __ movq(rdx, Operand(rsp, 7 * kRegisterSize));
2455 } 2455 }
2456 #endif // _WIN64 2456 #endif // _WIN64
2457 2457
2458 // Runtime functions should not return 'the hole'. Allowing it to escape may
2459 // lead to crashes in the IC code later.
2460 if (FLAG_debug_code) {
2461 Label okay;
2462 __ CompareRoot(rax, Heap::kTheHoleValueRootIndex);
2463 __ j(not_equal, &okay, Label::kNear);
2464 __ int3();
2465 __ bind(&okay);
2466 }
2467
2468 // Check result for exception sentinel. 2458 // Check result for exception sentinel.
2469 Label exception_returned; 2459 Label exception_returned;
2470 __ CompareRoot(rax, Heap::kExceptionRootIndex); 2460 __ CompareRoot(rax, Heap::kExceptionRootIndex);
2471 __ j(equal, &exception_returned); 2461 __ j(equal, &exception_returned);
2472 2462
2473 // Check that there is no pending exception, otherwise we 2463 // Check that there is no pending exception, otherwise we
2474 // should have returned the exception sentinel. 2464 // should have returned the exception sentinel.
2475 if (FLAG_debug_code) { 2465 if (FLAG_debug_code) {
2476 Label okay; 2466 Label okay;
2477 __ LoadRoot(r14, Heap::kTheHoleValueRootIndex); 2467 __ LoadRoot(r14, Heap::kTheHoleValueRootIndex);
(...skipping 2667 matching lines...) Expand 10 before | Expand all | Expand 10 after
5145 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, 5135 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg,
5146 kStackSpace, nullptr, return_value_operand, NULL); 5136 kStackSpace, nullptr, return_value_operand, NULL);
5147 } 5137 }
5148 5138
5149 5139
5150 #undef __ 5140 #undef __
5151 5141
5152 } } // namespace v8::internal 5142 } } // namespace v8::internal
5153 5143
5154 #endif // V8_TARGET_ARCH_X64 5144 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698