| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 } | 479 } |
| 480 | 480 |
| 481 | 481 |
| 482 int HandleScope::NumberOfHandles() { | 482 int HandleScope::NumberOfHandles() { |
| 483 EnsureInitialized("HandleScope::NumberOfHandles"); | 483 EnsureInitialized("HandleScope::NumberOfHandles"); |
| 484 return i::HandleScope::NumberOfHandles(); | 484 return i::HandleScope::NumberOfHandles(); |
| 485 } | 485 } |
| 486 | 486 |
| 487 | 487 |
| 488 i::Object** v8::HandleScope::CreateHandle(i::Object* value) { | 488 i::Object** v8::HandleScope::CreateHandle(i::Object* value) { |
| 489 return i::HandleScope::CreateHandle(value); | 489 return i::HandleScope::CreateHandle(value, i::Isolate::Current()); |
| 490 } | 490 } |
| 491 | 491 |
| 492 | 492 |
| 493 void Context::Enter() { | 493 void Context::Enter() { |
| 494 if (IsDeadCheck("v8::Context::Enter()")) return; | 494 if (IsDeadCheck("v8::Context::Enter()")) return; |
| 495 ENTER_V8; | 495 ENTER_V8; |
| 496 i::Handle<i::Context> env = Utils::OpenHandle(this); | 496 i::Handle<i::Context> env = Utils::OpenHandle(this); |
| 497 // TODO(isolates): Context should have a pointer to isolate. | 497 // TODO(isolates): Context should have a pointer to isolate. |
| 498 i::Isolate* isolate = i::Isolate::Current(); | 498 i::Isolate* isolate = i::Isolate::Current(); |
| 499 isolate->handle_scope_implementer()->EnterContext(env); | 499 isolate->handle_scope_implementer()->EnterContext(env); |
| (...skipping 4389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4889 | 4889 |
| 4890 | 4890 |
| 4891 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4891 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 4892 HandleScopeImplementer* thread_local = | 4892 HandleScopeImplementer* thread_local = |
| 4893 reinterpret_cast<HandleScopeImplementer*>(storage); | 4893 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 4894 thread_local->IterateThis(v); | 4894 thread_local->IterateThis(v); |
| 4895 return storage + ArchiveSpacePerThread(); | 4895 return storage + ArchiveSpacePerThread(); |
| 4896 } | 4896 } |
| 4897 | 4897 |
| 4898 } } // namespace v8::internal | 4898 } } // namespace v8::internal |
| OLD | NEW |