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

Side by Side Diff: src/objects.h

Issue 11821049: Combine DEBUG_BREAK and DEBUG_PREPARE_STEP_IN into one IC stub kind DEBUG_STUB, encoding DEBUG_BREA… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 11 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/liveedit.cc ('k') | src/objects.cc » ('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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 }; 171 };
172 172
173 173
174 // Indicates whether transitions can be added to a source map or not. 174 // Indicates whether transitions can be added to a source map or not.
175 enum TransitionFlag { 175 enum TransitionFlag {
176 INSERT_TRANSITION, 176 INSERT_TRANSITION,
177 OMIT_TRANSITION 177 OMIT_TRANSITION
178 }; 178 };
179 179
180 180
181 enum DebugExtraICState {
182 DEBUG_BREAK,
183 DEBUG_PREPARE_STEP_IN
184 };
185
186
181 // Indicates whether the transition is simple: the target map of the transition 187 // Indicates whether the transition is simple: the target map of the transition
182 // either extends the current map with a new property, or it modifies the 188 // either extends the current map with a new property, or it modifies the
183 // property that was added last to the current map. 189 // property that was added last to the current map.
184 enum SimpleTransitionFlag { 190 enum SimpleTransitionFlag {
185 SIMPLE_TRANSITION, 191 SIMPLE_TRANSITION,
186 FULL_TRANSITION 192 FULL_TRANSITION
187 }; 193 };
188 194
189 195
190 // Indicates whether we are only interested in the descriptors of a particular 196 // Indicates whether we are only interested in the descriptors of a particular
(...skipping 4113 matching lines...) Expand 10 before | Expand all | Expand 10 after
4304 4310
4305 // [flags]: Access to specific code flags. 4311 // [flags]: Access to specific code flags.
4306 inline Kind kind(); 4312 inline Kind kind();
4307 inline InlineCacheState ic_state(); // Only valid for IC stubs. 4313 inline InlineCacheState ic_state(); // Only valid for IC stubs.
4308 inline ExtraICState extra_ic_state(); // Only valid for IC stubs. 4314 inline ExtraICState extra_ic_state(); // Only valid for IC stubs.
4309 inline StubType type(); // Only valid for monomorphic IC stubs. 4315 inline StubType type(); // Only valid for monomorphic IC stubs.
4310 inline int arguments_count(); // Only valid for call IC stubs. 4316 inline int arguments_count(); // Only valid for call IC stubs.
4311 4317
4312 // Testers for IC stub kinds. 4318 // Testers for IC stub kinds.
4313 inline bool is_inline_cache_stub(); 4319 inline bool is_inline_cache_stub();
4320 inline bool is_debug_break();
4314 inline bool is_load_stub() { return kind() == LOAD_IC; } 4321 inline bool is_load_stub() { return kind() == LOAD_IC; }
4315 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } 4322 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; }
4316 inline bool is_store_stub() { return kind() == STORE_IC; } 4323 inline bool is_store_stub() { return kind() == STORE_IC; }
4317 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } 4324 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; }
4318 inline bool is_call_stub() { return kind() == CALL_IC; } 4325 inline bool is_call_stub() { return kind() == CALL_IC; }
4319 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; } 4326 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; }
4320 inline bool is_unary_op_stub() { return kind() == UNARY_OP_IC; } 4327 inline bool is_unary_op_stub() { return kind() == UNARY_OP_IC; }
4321 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } 4328 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; }
4322 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } 4329 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; }
4323 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } 4330 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; }
(...skipping 4502 matching lines...) Expand 10 before | Expand all | Expand 10 after
8826 } else { 8833 } else {
8827 value &= ~(1 << bit_position); 8834 value &= ~(1 << bit_position);
8828 } 8835 }
8829 return value; 8836 return value;
8830 } 8837 }
8831 }; 8838 };
8832 8839
8833 } } // namespace v8::internal 8840 } } // namespace v8::internal
8834 8841
8835 #endif // V8_OBJECTS_H_ 8842 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/liveedit.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698