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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 212163004: Hide some runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/builtins-mips.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after
2422 bool restore_context = context_restore_operand != NULL; 2422 bool restore_context = context_restore_operand != NULL;
2423 if (restore_context) { 2423 if (restore_context) {
2424 mov(esi, *context_restore_operand); 2424 mov(esi, *context_restore_operand);
2425 } 2425 }
2426 LeaveApiExitFrame(!restore_context); 2426 LeaveApiExitFrame(!restore_context);
2427 ret(stack_space * kPointerSize); 2427 ret(stack_space * kPointerSize);
2428 2428
2429 bind(&promote_scheduled_exception); 2429 bind(&promote_scheduled_exception);
2430 { 2430 {
2431 FrameScope frame(this, StackFrame::INTERNAL); 2431 FrameScope frame(this, StackFrame::INTERNAL);
2432 CallRuntime(Runtime::kPromoteScheduledException, 0); 2432 CallRuntime(Runtime::kHiddenPromoteScheduledException, 0);
2433 } 2433 }
2434 jmp(&exception_handled); 2434 jmp(&exception_handled);
2435 2435
2436 // HandleScope limit has changed. Delete allocated extensions. 2436 // HandleScope limit has changed. Delete allocated extensions.
2437 ExternalReference delete_extensions = 2437 ExternalReference delete_extensions =
2438 ExternalReference::delete_handle_scope_extensions(isolate()); 2438 ExternalReference::delete_handle_scope_extensions(isolate());
2439 bind(&delete_allocated_handles); 2439 bind(&delete_allocated_handles);
2440 mov(Operand::StaticVariable(limit_address), edi); 2440 mov(Operand::StaticVariable(limit_address), edi);
2441 mov(edi, eax); 2441 mov(edi, eax);
2442 mov(Operand(esp, 0), 2442 mov(Operand(esp, 0),
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
3014 } 3014 }
3015 #endif 3015 #endif
3016 3016
3017 push(eax); 3017 push(eax);
3018 push(Immediate(Smi::FromInt(reason))); 3018 push(Immediate(Smi::FromInt(reason)));
3019 // Disable stub call restrictions to always allow calls to throw. 3019 // Disable stub call restrictions to always allow calls to throw.
3020 if (!has_frame_) { 3020 if (!has_frame_) {
3021 // We don't actually want to generate a pile of code for this, so just 3021 // We don't actually want to generate a pile of code for this, so just
3022 // claim there is a stack frame, without generating one. 3022 // claim there is a stack frame, without generating one.
3023 FrameScope scope(this, StackFrame::NONE); 3023 FrameScope scope(this, StackFrame::NONE);
3024 CallRuntime(Runtime::kThrowMessage, 1); 3024 CallRuntime(Runtime::kHiddenThrowMessage, 1);
3025 } else { 3025 } else {
3026 CallRuntime(Runtime::kThrowMessage, 1); 3026 CallRuntime(Runtime::kHiddenThrowMessage, 1);
3027 } 3027 }
3028 // will not return here 3028 // will not return here
3029 int3(); 3029 int3();
3030 } 3030 }
3031 3031
3032 3032
3033 void MacroAssembler::ThrowIf(Condition cc, BailoutReason reason) { 3033 void MacroAssembler::ThrowIf(Condition cc, BailoutReason reason) {
3034 Label L; 3034 Label L;
3035 j(NegateCondition(cc), &L); 3035 j(NegateCondition(cc), &L);
3036 Throw(reason); 3036 Throw(reason);
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
3646 if (ms.shift() > 0) sar(edx, ms.shift()); 3646 if (ms.shift() > 0) sar(edx, ms.shift());
3647 mov(eax, dividend); 3647 mov(eax, dividend);
3648 shr(eax, 31); 3648 shr(eax, 31);
3649 add(edx, eax); 3649 add(edx, eax);
3650 } 3650 }
3651 3651
3652 3652
3653 } } // namespace v8::internal 3653 } } // namespace v8::internal
3654 3654
3655 #endif // V8_TARGET_ARCH_IA32 3655 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698