| OLD | NEW |
| 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/isolate.h" | 5 #include "src/isolate.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 } | 329 } |
| 330 // Skip all frames until we've seen the caller. | 330 // Skip all frames until we've seen the caller. |
| 331 if (!(*seen_caller)) return false; | 331 if (!(*seen_caller)) return false; |
| 332 // Functions defined in native scripts are not visible unless directly | 332 // Functions defined in native scripts are not visible unless directly |
| 333 // exposed, in which case the native flag is set. | 333 // exposed, in which case the native flag is set. |
| 334 // The --builtins-in-stack-traces command line flag allows including | 334 // The --builtins-in-stack-traces command line flag allows including |
| 335 // internal call sites in the stack trace for debugging purposes. | 335 // internal call sites in the stack trace for debugging purposes. |
| 336 if (!FLAG_builtins_in_stack_traces && fun->shared()->IsBuiltin()) { | 336 if (!FLAG_builtins_in_stack_traces && fun->shared()->IsBuiltin()) { |
| 337 return fun->shared()->native(); | 337 return fun->shared()->native(); |
| 338 } | 338 } |
| 339 |
| 339 return true; | 340 return true; |
| 340 } | 341 } |
| 341 | 342 |
| 342 static Handle<FixedArray> MaybeGrow(Isolate* isolate, | 343 static Handle<FixedArray> MaybeGrow(Isolate* isolate, |
| 343 Handle<FixedArray> elements, | 344 Handle<FixedArray> elements, |
| 344 int cur_position, int new_size) { | 345 int cur_position, int new_size) { |
| 345 if (new_size > elements->length()) { | 346 if (new_size > elements->length()) { |
| 346 int new_capacity = JSObject::NewElementsCapacity(elements->length()); | 347 int new_capacity = JSObject::NewElementsCapacity(elements->length()); |
| 347 Handle<FixedArray> new_elements = | 348 Handle<FixedArray> new_elements = |
| 348 isolate->factory()->NewFixedArrayWithHoles(new_capacity); | 349 isolate->factory()->NewFixedArrayWithHoles(new_capacity); |
| (...skipping 2650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2999 // Then check whether this scope intercepts. | 3000 // Then check whether this scope intercepts. |
| 3000 if ((flag & intercept_mask_)) { | 3001 if ((flag & intercept_mask_)) { |
| 3001 intercepted_flags_ |= flag; | 3002 intercepted_flags_ |= flag; |
| 3002 return true; | 3003 return true; |
| 3003 } | 3004 } |
| 3004 return false; | 3005 return false; |
| 3005 } | 3006 } |
| 3006 | 3007 |
| 3007 } // namespace internal | 3008 } // namespace internal |
| 3008 } // namespace v8 | 3009 } // namespace v8 |
| OLD | NEW |