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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm/macro-assembler-arm.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 3946 matching lines...) Expand 10 before | Expand all | Expand 10 after
3957 __ mov(ip, Operand(ExternalReference(Isolate::kPendingExceptionAddress, 3957 __ mov(ip, Operand(ExternalReference(Isolate::kPendingExceptionAddress,
3958 isolate))); 3958 isolate)));
3959 __ str(r0, MemOperand(ip)); 3959 __ str(r0, MemOperand(ip));
3960 __ mov(r0, Operand(reinterpret_cast<int32_t>(Failure::Exception()))); 3960 __ mov(r0, Operand(reinterpret_cast<int32_t>(Failure::Exception())));
3961 __ b(&exit); 3961 __ b(&exit);
3962 3962
3963 // Invoke: Link this frame into the handler chain. There's only one 3963 // Invoke: Link this frame into the handler chain. There's only one
3964 // handler block in this code object, so its index is 0. 3964 // handler block in this code object, so its index is 0.
3965 __ bind(&invoke); 3965 __ bind(&invoke);
3966 // Must preserve r0-r4, r5-r7 are available. 3966 // Must preserve r0-r4, r5-r7 are available.
3967 __ PushTryHandler(IN_JS_ENTRY, JS_ENTRY_HANDLER, 0); 3967 __ PushTryHandler(StackHandler::JS_ENTRY, 0);
3968 // If an exception not caught by another handler occurs, this handler 3968 // If an exception not caught by another handler occurs, this handler
3969 // returns control to the code after the bl(&invoke) above, which 3969 // returns control to the code after the bl(&invoke) above, which
3970 // restores all kCalleeSaved registers (including cp and fp) to their 3970 // restores all kCalleeSaved registers (including cp and fp) to their
3971 // saved values before returning a failure to C. 3971 // saved values before returning a failure to C.
3972 3972
3973 // Clear any pending exceptions. 3973 // Clear any pending exceptions.
3974 __ mov(r5, Operand(isolate->factory()->the_hole_value())); 3974 __ mov(r5, Operand(isolate->factory()->the_hole_value()));
3975 __ mov(ip, Operand(ExternalReference(Isolate::kPendingExceptionAddress, 3975 __ mov(ip, Operand(ExternalReference(Isolate::kPendingExceptionAddress,
3976 isolate))); 3976 isolate)));
3977 __ str(r5, MemOperand(ip)); 3977 __ str(r5, MemOperand(ip));
(...skipping 3383 matching lines...) Expand 10 before | Expand all | Expand 10 after
7361 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r2, 7361 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r2,
7362 &slow_elements); 7362 &slow_elements);
7363 __ Ret(); 7363 __ Ret();
7364 } 7364 }
7365 7365
7366 #undef __ 7366 #undef __
7367 7367
7368 } } // namespace v8::internal 7368 } } // namespace v8::internal
7369 7369
7370 #endif // V8_TARGET_ARCH_ARM 7370 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698