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

Side by Side Diff: src/ic-inl.h

Issue 23493019: remove most Isolate::Current asserts (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 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 25 matching lines...) Expand all
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 40
41 Address IC::address() const { 41 Address IC::address() const {
42 // Get the address of the call. 42 // Get the address of the call.
43 Address result = Assembler::target_address_from_return_address(pc()); 43 Address result = Assembler::target_address_from_return_address(pc());
44 44
45 #ifdef ENABLE_DEBUGGER_SUPPORT 45 #ifdef ENABLE_DEBUGGER_SUPPORT
46 ASSERT(Isolate::Current() == isolate());
47 Debug* debug = isolate()->debug(); 46 Debug* debug = isolate()->debug();
48 // First check if any break points are active if not just return the address 47 // First check if any break points are active if not just return the address
49 // of the call. 48 // of the call.
50 if (!debug->has_break_points()) return result; 49 if (!debug->has_break_points()) return result;
51 50
52 // At least one break point is active perform additional test to ensure that 51 // At least one break point is active perform additional test to ensure that
53 // break point locations are updated correctly. 52 // break point locations are updated correctly.
54 if (debug->IsDebugBreak(Assembler::target_address_at(result))) { 53 if (debug->IsDebugBreak(Assembler::target_address_at(result))) {
55 // If the call site is a call to debug break then return the address in 54 // If the call site is a call to debug break then return the address in
56 // the original code instead of the address in the running code. This will 55 // the original code instead of the address in the running code. This will
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 Object* map_owner = 135 Object* map_owner =
137 holder == OWN_MAP ? object : object->GetPrototype(isolate); 136 holder == OWN_MAP ? object : object->GetPrototype(isolate);
138 ASSERT(map_owner->IsJSObject()); 137 ASSERT(map_owner->IsJSObject());
139 return JSObject::cast(map_owner); 138 return JSObject::cast(map_owner);
140 } 139 }
141 140
142 141
143 } } // namespace v8::internal 142 } } // namespace v8::internal
144 143
145 #endif // V8_IC_INL_H_ 144 #endif // V8_IC_INL_H_
OLDNEW
« src/compiler.h ('K') | « src/debug.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698