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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 8462010: Add a level of indirection to exception handler addresses. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 void AbortIfNotString(Register object); 926 void AbortIfNotString(Register object);
927 927
928 // Abort execution if argument is not the root value with the given index. 928 // Abort execution if argument is not the root value with the given index.
929 void AbortIfNotRootValue(Register src, 929 void AbortIfNotRootValue(Register src,
930 Heap::RootListIndex root_value_index, 930 Heap::RootListIndex root_value_index,
931 const char* message); 931 const char* message);
932 932
933 // --------------------------------------------------------------------------- 933 // ---------------------------------------------------------------------------
934 // Exception handling 934 // Exception handling
935 935
936 // Push a new try handler and link into try handler chain. The return 936 // Push a new try handler and link it into try handler chain.
937 // address must be pushed before calling this helper. 937 void PushTryHandler(CodeLocation try_location,
938 void PushTryHandler(CodeLocation try_location, HandlerType type); 938 HandlerType type,
939 int handler_index);
939 940
940 // Unlink the stack handler on top of the stack from the try handler chain. 941 // Unlink the stack handler on top of the stack from the try handler chain.
941 void PopTryHandler(); 942 void PopTryHandler();
942 943
943 // Activate the top handler in the try hander chain and pass the 944 // Activate the top handler in the try hander chain and pass the
944 // thrown value. 945 // thrown value.
945 void Throw(Register value); 946 void Throw(Register value);
946 947
947 // Propagate an uncatchable exception out of the current JS stack. 948 // Propagate an uncatchable exception out of the current JS stack.
948 void ThrowUncatchable(UncatchableExceptionType type, Register value); 949 void ThrowUncatchable(UncatchableExceptionType type, Register value);
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 masm->popfd(); \ 1416 masm->popfd(); \
1416 } \ 1417 } \
1417 masm-> 1418 masm->
1418 #else 1419 #else
1419 #define ACCESS_MASM(masm) masm-> 1420 #define ACCESS_MASM(masm) masm->
1420 #endif 1421 #endif
1421 1422
1422 } } // namespace v8::internal 1423 } } // namespace v8::internal
1423 1424
1424 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1425 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698