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

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

Issue 9372016: Simplify handler pushing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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/full-codegen.cc ('k') | src/ia32/macro-assembler-ia32.h » ('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 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 5003 matching lines...) Expand 10 before | Expand all | Expand 10 after
5015 // field in the JSEnv and return a failure sentinel. 5015 // field in the JSEnv and return a failure sentinel.
5016 ExternalReference pending_exception(Isolate::kPendingExceptionAddress, 5016 ExternalReference pending_exception(Isolate::kPendingExceptionAddress,
5017 masm->isolate()); 5017 masm->isolate());
5018 __ mov(Operand::StaticVariable(pending_exception), eax); 5018 __ mov(Operand::StaticVariable(pending_exception), eax);
5019 __ mov(eax, reinterpret_cast<int32_t>(Failure::Exception())); 5019 __ mov(eax, reinterpret_cast<int32_t>(Failure::Exception()));
5020 __ jmp(&exit); 5020 __ jmp(&exit);
5021 5021
5022 // Invoke: Link this frame into the handler chain. There's only one 5022 // Invoke: Link this frame into the handler chain. There's only one
5023 // handler block in this code object, so its index is 0. 5023 // handler block in this code object, so its index is 0.
5024 __ bind(&invoke); 5024 __ bind(&invoke);
5025 __ PushTryHandler(IN_JS_ENTRY, JS_ENTRY_HANDLER, 0); 5025 __ PushTryHandler(StackHandler::JS_ENTRY, 0);
5026 5026
5027 // Clear any pending exceptions. 5027 // Clear any pending exceptions.
5028 __ mov(edx, Immediate(masm->isolate()->factory()->the_hole_value())); 5028 __ mov(edx, Immediate(masm->isolate()->factory()->the_hole_value()));
5029 __ mov(Operand::StaticVariable(pending_exception), edx); 5029 __ mov(Operand::StaticVariable(pending_exception), edx);
5030 5030
5031 // Fake a receiver (NULL). 5031 // Fake a receiver (NULL).
5032 __ push(Immediate(0)); // receiver 5032 __ push(Immediate(0)); // receiver
5033 5033
5034 // Invoke the function by calling through JS entry trampoline builtin and 5034 // Invoke the function by calling through JS entry trampoline builtin and
5035 // pop the faked function when we return. Notice that we cannot store a 5035 // pop the faked function when we return. Notice that we cannot store a
(...skipping 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
7372 false); 7372 false);
7373 __ pop(edx); 7373 __ pop(edx);
7374 __ ret(0); 7374 __ ret(0);
7375 } 7375 }
7376 7376
7377 #undef __ 7377 #undef __
7378 7378
7379 } } // namespace v8::internal 7379 } } // namespace v8::internal
7380 7380
7381 #endif // V8_TARGET_ARCH_IA32 7381 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698