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

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

Issue 240053010: Return Object* instead of MaybeObject* from runtime calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix string allocation Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 __ bind(&handler_entry); 1875 __ bind(&handler_entry);
1876 handler_offset_ = handler_entry.pos(); 1876 handler_offset_ = handler_entry.pos();
1877 // Caught exception: Store result (exception) in the pending exception 1877 // Caught exception: Store result (exception) in the pending exception
1878 // field in the JSEnv and return a failure sentinel. Coming in here the 1878 // field in the JSEnv and return a failure sentinel. Coming in here the
1879 // fp will be invalid because the PushTryHandler below sets it to 0 to 1879 // fp will be invalid because the PushTryHandler below sets it to 0 to
1880 // signal the existence of the JSEntry frame. 1880 // signal the existence of the JSEntry frame.
1881 __ Mov(x10, Operand(ExternalReference(Isolate::kPendingExceptionAddress, 1881 __ Mov(x10, Operand(ExternalReference(Isolate::kPendingExceptionAddress,
1882 isolate))); 1882 isolate)));
1883 } 1883 }
1884 __ Str(code_entry, MemOperand(x10)); 1884 __ Str(code_entry, MemOperand(x10));
1885 __ Mov(x0, Operand(reinterpret_cast<int64_t>(Failure::Exception()))); 1885 __ LoadRoot(x0, Heap::kExceptionRootIndex);
1886 __ B(&exit); 1886 __ B(&exit);
1887 1887
1888 // Invoke: Link this frame into the handler chain. There's only one 1888 // Invoke: Link this frame into the handler chain. There's only one
1889 // handler block in this code object, so its index is 0. 1889 // handler block in this code object, so its index is 0.
1890 __ Bind(&invoke); 1890 __ Bind(&invoke);
1891 __ PushTryHandler(StackHandler::JS_ENTRY, 0); 1891 __ PushTryHandler(StackHandler::JS_ENTRY, 0);
1892 // If an exception not caught by another handler occurs, this handler 1892 // If an exception not caught by another handler occurs, this handler
1893 // returns control to the code after the B(&invoke) above, which 1893 // returns control to the code after the B(&invoke) above, which
1894 // restores all callee-saved registers (including cp and fp) to their 1894 // restores all callee-saved registers (including cp and fp) to their
1895 // saved values before returning a failure to C. 1895 // saved values before returning a failure to C.
(...skipping 3628 matching lines...) Expand 10 before | Expand all | Expand 10 after
5524 MemOperand(fp, 6 * kPointerSize), 5524 MemOperand(fp, 6 * kPointerSize),
5525 NULL); 5525 NULL);
5526 } 5526 }
5527 5527
5528 5528
5529 #undef __ 5529 #undef __
5530 5530
5531 } } // namespace v8::internal 5531 } } // namespace v8::internal
5532 5532
5533 #endif // V8_TARGET_ARCH_ARM64 5533 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698