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

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

Issue 947683002: Reimplement Maps and Sets in JS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merged to master Created 5 years, 8 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/hydrogen.cc ('k') | src/macros.py » ('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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 } 2487 }
2488 2488
2489 // Call C function. 2489 // Call C function.
2490 __ mov(Operand(esp, 0 * kPointerSize), edi); // argc. 2490 __ mov(Operand(esp, 0 * kPointerSize), edi); // argc.
2491 __ mov(Operand(esp, 1 * kPointerSize), esi); // argv. 2491 __ mov(Operand(esp, 1 * kPointerSize), esi); // argv.
2492 __ mov(Operand(esp, 2 * kPointerSize), 2492 __ mov(Operand(esp, 2 * kPointerSize),
2493 Immediate(ExternalReference::isolate_address(isolate()))); 2493 Immediate(ExternalReference::isolate_address(isolate())));
2494 __ call(ebx); 2494 __ call(ebx);
2495 // Result is in eax or edx:eax - do not destroy these registers! 2495 // Result is in eax or edx:eax - do not destroy these registers!
2496 2496
2497 // Runtime functions should not return 'the hole'. Allowing it to escape may
2498 // lead to crashes in the IC code later.
2499 if (FLAG_debug_code) {
2500 Label okay;
2501 __ cmp(eax, isolate()->factory()->the_hole_value());
2502 __ j(not_equal, &okay, Label::kNear);
2503 __ int3();
2504 __ bind(&okay);
2505 }
2506
2507 // Check result for exception sentinel. 2497 // Check result for exception sentinel.
2508 Label exception_returned; 2498 Label exception_returned;
2509 __ cmp(eax, isolate()->factory()->exception()); 2499 __ cmp(eax, isolate()->factory()->exception());
2510 __ j(equal, &exception_returned); 2500 __ j(equal, &exception_returned);
2511 2501
2512 // Check that there is no pending exception, otherwise we 2502 // Check that there is no pending exception, otherwise we
2513 // should have returned the exception sentinel. 2503 // should have returned the exception sentinel.
2514 if (FLAG_debug_code) { 2504 if (FLAG_debug_code) {
2515 __ push(edx); 2505 __ push(edx);
2516 __ mov(edx, Immediate(isolate()->factory()->the_hole_value())); 2506 __ mov(edx, Immediate(isolate()->factory()->the_hole_value()));
(...skipping 2891 matching lines...) Expand 10 before | Expand all | Expand 10 after
5408 ApiParameterOperand(2), kStackSpace, nullptr, 5398 ApiParameterOperand(2), kStackSpace, nullptr,
5409 Operand(ebp, 7 * kPointerSize), NULL); 5399 Operand(ebp, 7 * kPointerSize), NULL);
5410 } 5400 }
5411 5401
5412 5402
5413 #undef __ 5403 #undef __
5414 5404
5415 } } // namespace v8::internal 5405 } } // namespace v8::internal
5416 5406
5417 #endif // V8_TARGET_ARCH_IA32 5407 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698