| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 4325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4336 int frame_limit, | 4336 int frame_limit, |
| 4337 StackTrace::StackTraceOptions options) { | 4337 StackTrace::StackTraceOptions options) { |
| 4338 i::Isolate::Current()->SetCaptureStackTraceForUncaughtExceptions( | 4338 i::Isolate::Current()->SetCaptureStackTraceForUncaughtExceptions( |
| 4339 capture, | 4339 capture, |
| 4340 frame_limit, | 4340 frame_limit, |
| 4341 options); | 4341 options); |
| 4342 } | 4342 } |
| 4343 | 4343 |
| 4344 | 4344 |
| 4345 void V8::SetCounterFunction(CounterLookupCallback callback) { | 4345 void V8::SetCounterFunction(CounterLookupCallback callback) { |
| 4346 i::Isolate* isolate = i::Isolate::Current(); | 4346 i::Isolate* isolate = EnterIsolateIfNeeded(); |
| 4347 if (IsDeadCheck(isolate, "v8::V8::SetCounterFunction()")) return; | 4347 if (IsDeadCheck(isolate, "v8::V8::SetCounterFunction()")) return; |
| 4348 isolate->stats_table()->SetCounterFunction(callback); | 4348 isolate->stats_table()->SetCounterFunction(callback); |
| 4349 } | 4349 } |
| 4350 | 4350 |
| 4351 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { | 4351 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { |
| 4352 i::Isolate* isolate = i::Isolate::Current(); | 4352 i::Isolate* isolate = EnterIsolateIfNeeded(); |
| 4353 if (IsDeadCheck(isolate, "v8::V8::SetCreateHistogramFunction()")) return; | 4353 if (IsDeadCheck(isolate, "v8::V8::SetCreateHistogramFunction()")) return; |
| 4354 isolate->stats_table()->SetCreateHistogramFunction(callback); | 4354 isolate->stats_table()->SetCreateHistogramFunction(callback); |
| 4355 } | 4355 } |
| 4356 | 4356 |
| 4357 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) { | 4357 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) { |
| 4358 i::Isolate* isolate = i::Isolate::Current(); | 4358 i::Isolate* isolate = EnterIsolateIfNeeded(); |
| 4359 if (IsDeadCheck(isolate, "v8::V8::SetAddHistogramSampleFunction()")) return; | 4359 if (IsDeadCheck(isolate, "v8::V8::SetAddHistogramSampleFunction()")) return; |
| 4360 isolate->stats_table()-> | 4360 isolate->stats_table()-> |
| 4361 SetAddHistogramSampleFunction(callback); | 4361 SetAddHistogramSampleFunction(callback); |
| 4362 } | 4362 } |
| 4363 | 4363 |
| 4364 void V8::EnableSlidingStateWindow() { | 4364 void V8::EnableSlidingStateWindow() { |
| 4365 i::Isolate* isolate = i::Isolate::Current(); | 4365 i::Isolate* isolate = i::Isolate::Current(); |
| 4366 if (IsDeadCheck(isolate, "v8::V8::EnableSlidingStateWindow()")) return; | 4366 if (IsDeadCheck(isolate, "v8::V8::EnableSlidingStateWindow()")) return; |
| 4367 isolate->logger()->EnableSlidingStateWindow(); | 4367 isolate->logger()->EnableSlidingStateWindow(); |
| 4368 } | 4368 } |
| (...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5658 | 5658 |
| 5659 | 5659 |
| 5660 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 5660 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 5661 HandleScopeImplementer* thread_local = | 5661 HandleScopeImplementer* thread_local = |
| 5662 reinterpret_cast<HandleScopeImplementer*>(storage); | 5662 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 5663 thread_local->IterateThis(v); | 5663 thread_local->IterateThis(v); |
| 5664 return storage + ArchiveSpacePerThread(); | 5664 return storage + ArchiveSpacePerThread(); |
| 5665 } | 5665 } |
| 5666 | 5666 |
| 5667 } } // namespace v8::internal | 5667 } } // namespace v8::internal |
| OLD | NEW |