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

Side by Side Diff: src/ic/ic.cc

Issue 1234833003: Debugger: use debug break slots to break at function exit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix for arm Created 5 years, 5 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
« no previous file with comments | « src/ic/ic.h ('k') | src/ic/ic-inl.h » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 207
208 Code* IC::GetCode() const { 208 Code* IC::GetCode() const {
209 HandleScope scope(isolate()); 209 HandleScope scope(isolate());
210 Handle<SharedFunctionInfo> shared(GetSharedFunctionInfo(), isolate()); 210 Handle<SharedFunctionInfo> shared(GetSharedFunctionInfo(), isolate());
211 Code* code = shared->code(); 211 Code* code = shared->code();
212 return code; 212 return code;
213 } 213 }
214 214
215 215
216 Code* IC::GetOriginalCode() const {
217 HandleScope scope(isolate());
218 Handle<SharedFunctionInfo> shared(GetSharedFunctionInfo(), isolate());
219 DCHECK(Debug::HasDebugInfo(shared));
220 Code* original_code = Debug::GetDebugInfo(shared)->original_code();
221 DCHECK(original_code->IsCode());
222 return original_code;
223 }
224
225
226 bool IC::AddressIsOptimizedCode() const { 216 bool IC::AddressIsOptimizedCode() const {
227 Code* host = 217 Code* host =
228 isolate()->inner_pointer_to_code_cache()->GetCacheEntry(address())->code; 218 isolate()->inner_pointer_to_code_cache()->GetCacheEntry(address())->code;
229 return host->kind() == Code::OPTIMIZED_FUNCTION; 219 return host->kind() == Code::OPTIMIZED_FUNCTION;
230 } 220 }
231 221
232 222
233 static void LookupForRead(LookupIterator* it) { 223 static void LookupForRead(LookupIterator* it) {
234 for (; it->IsFound(); it->Next()) { 224 for (; it->IsFound(); it->Next()) {
235 switch (it->state()) { 225 switch (it->state()) {
(...skipping 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after
3081 static const Address IC_utilities[] = { 3071 static const Address IC_utilities[] = {
3082 #define ADDR(name) FUNCTION_ADDR(name), 3072 #define ADDR(name) FUNCTION_ADDR(name),
3083 IC_UTIL_LIST(ADDR) NULL 3073 IC_UTIL_LIST(ADDR) NULL
3084 #undef ADDR 3074 #undef ADDR
3085 }; 3075 };
3086 3076
3087 3077
3088 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 3078 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
3089 } // namespace internal 3079 } // namespace internal
3090 } // namespace v8 3080 } // namespace v8
OLDNEW
« no previous file with comments | « src/ic/ic.h ('k') | src/ic/ic-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698