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

Side by Side Diff: src/ic.h

Issue 77035: Add ENABLE_DEBUGGER_SUPPORT macro.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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
« no previous file with comments | « src/heap.cc ('k') | src/ic.cc » ('j') | src/serialize.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 // Returns the map to use for caching stubs for a given object. 102 // Returns the map to use for caching stubs for a given object.
103 // This method should not be called with undefined or null. 103 // This method should not be called with undefined or null.
104 static inline Map* GetCodeCacheMapForObject(Object* object); 104 static inline Map* GetCodeCacheMapForObject(Object* object);
105 105
106 protected: 106 protected:
107 Address fp() const { return fp_; } 107 Address fp() const { return fp_; }
108 Address pc() const { return *pc_address_; } 108 Address pc() const { return *pc_address_; }
109 109
110 #ifdef ENABLE_DEBUGGER_SUPPORT
110 // Computes the address in the original code when the code running is 111 // Computes the address in the original code when the code running is
111 // containing break points (calls to DebugBreakXXX builtins). 112 // containing break points (calls to DebugBreakXXX builtins).
112 Address OriginalCodeAddress(); 113 Address OriginalCodeAddress();
114 #endif
113 115
114 // Set the call-site target. 116 // Set the call-site target.
115 void set_target(Code* code) { SetTargetAtAddress(address(), code); } 117 void set_target(Code* code) { SetTargetAtAddress(address(), code); }
116 118
117 #ifdef DEBUG 119 #ifdef DEBUG
118 static void TraceIC(const char* type, 120 static void TraceIC(const char* type,
119 Handle<String> name, 121 Handle<String> name,
120 State old_state, 122 State old_state,
121 Code* new_target); 123 Code* new_target);
122 #endif 124 #endif
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 362 }
361 363
362 static void Clear(Address address, Code* target); 364 static void Clear(Address address, Code* target);
363 friend class IC; 365 friend class IC;
364 }; 366 };
365 367
366 368
367 } } // namespace v8::internal 369 } } // namespace v8::internal
368 370
369 #endif // V8_IC_H_ 371 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ic.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698