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

Side by Side Diff: src/mips/code-stubs-mips.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/macro-assembler.h ('k') | src/mips/macro-assembler-mips.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 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 4122 matching lines...) Expand 10 before | Expand all | Expand 10 after
4133 __ li(t0, Operand(ExternalReference(Isolate::kPendingExceptionAddress, 4133 __ li(t0, Operand(ExternalReference(Isolate::kPendingExceptionAddress,
4134 isolate))); 4134 isolate)));
4135 __ sw(v0, MemOperand(t0)); // We come back from 'invoke'. result is in v0. 4135 __ sw(v0, MemOperand(t0)); // We come back from 'invoke'. result is in v0.
4136 __ li(v0, Operand(reinterpret_cast<int32_t>(Failure::Exception()))); 4136 __ li(v0, Operand(reinterpret_cast<int32_t>(Failure::Exception())));
4137 __ b(&exit); // b exposes branch delay slot. 4137 __ b(&exit); // b exposes branch delay slot.
4138 __ nop(); // Branch delay slot nop. 4138 __ nop(); // Branch delay slot nop.
4139 4139
4140 // Invoke: Link this frame into the handler chain. There's only one 4140 // Invoke: Link this frame into the handler chain. There's only one
4141 // handler block in this code object, so its index is 0. 4141 // handler block in this code object, so its index is 0.
4142 __ bind(&invoke); 4142 __ bind(&invoke);
4143 __ PushTryHandler(IN_JS_ENTRY, JS_ENTRY_HANDLER, 0); 4143 __ PushTryHandler(StackHandler::JS_ENTRY, 0);
4144 // If an exception not caught by another handler occurs, this handler 4144 // If an exception not caught by another handler occurs, this handler
4145 // returns control to the code after the bal(&invoke) above, which 4145 // returns control to the code after the bal(&invoke) above, which
4146 // restores all kCalleeSaved registers (including cp and fp) to their 4146 // restores all kCalleeSaved registers (including cp and fp) to their
4147 // saved values before returning a failure to C. 4147 // saved values before returning a failure to C.
4148 4148
4149 // Clear any pending exceptions. 4149 // Clear any pending exceptions.
4150 __ li(t1, Operand(isolate->factory()->the_hole_value())); 4150 __ li(t1, Operand(isolate->factory()->the_hole_value()));
4151 __ li(t0, Operand(ExternalReference(Isolate::kPendingExceptionAddress, 4151 __ li(t0, Operand(ExternalReference(Isolate::kPendingExceptionAddress,
4152 isolate))); 4152 isolate)));
4153 __ sw(t1, MemOperand(t0)); 4153 __ sw(t1, MemOperand(t0));
(...skipping 3482 matching lines...) Expand 10 before | Expand all | Expand 10 after
7636 __ Ret(USE_DELAY_SLOT); 7636 __ Ret(USE_DELAY_SLOT);
7637 __ mov(v0, a0); 7637 __ mov(v0, a0);
7638 } 7638 }
7639 7639
7640 7640
7641 #undef __ 7641 #undef __
7642 7642
7643 } } // namespace v8::internal 7643 } } // namespace v8::internal
7644 7644
7645 #endif // V8_TARGET_ARCH_MIPS 7645 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/macro-assembler.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698