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

Side by Side Diff: src/api.cc

Issue 39573002: Fix r17253. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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 | « no previous file | no next file » | 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 // 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 6364 matching lines...) Expand 10 before | Expand all | Expand 10 after
6375 } 6375 }
6376 return v8::Undefined(reinterpret_cast<v8::Isolate*>(isolate)); 6376 return v8::Undefined(reinterpret_cast<v8::Isolate*>(isolate));
6377 } 6377 }
6378 6378
6379 6379
6380 void Isolate::SetObjectGroupId(internal::Object** object, UniqueId id) { 6380 void Isolate::SetObjectGroupId(internal::Object** object, UniqueId id) {
6381 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(this); 6381 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(this);
6382 internal_isolate->global_handles()->SetObjectGroupId( 6382 internal_isolate->global_handles()->SetObjectGroupId(
6383 v8::internal::Handle<v8::internal::Object>(object).location(), 6383 v8::internal::Handle<v8::internal::Object>(object).location(),
6384 id); 6384 id);
6385 internal_isolate->global_handles()->SetObjectGroupId(object, id);
6386 } 6385 }
6387 6386
6388 6387
6389 void Isolate::SetReferenceFromGroup(UniqueId id, internal::Object** object) { 6388 void Isolate::SetReferenceFromGroup(UniqueId id, internal::Object** object) {
6390 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(this); 6389 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(this);
6391 internal_isolate->global_handles()->SetReferenceFromGroup( 6390 internal_isolate->global_handles()->SetReferenceFromGroup(
6392 id, 6391 id,
6393 v8::internal::Handle<v8::internal::Object>(object).location()); 6392 v8::internal::Handle<v8::internal::Object>(object).location());
6394 internal_isolate->global_handles()->SetReferenceFromGroup(id, object);
6395 } 6393 }
6396 6394
6397 6395
6398 void Isolate::SetReference(internal::Object** parent, 6396 void Isolate::SetReference(internal::Object** parent,
6399 internal::Object** child) { 6397 internal::Object** child) {
6400 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(this); 6398 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(this);
6401 i::Object** parent_location = 6399 i::Object** parent_location =
6402 v8::internal::Handle<v8::internal::Object>(parent).location(); 6400 v8::internal::Handle<v8::internal::Object>(parent).location();
6403 internal_isolate->global_handles()->SetReference( 6401 internal_isolate->global_handles()->SetReference(
6404 reinterpret_cast<i::HeapObject**>(parent_location), 6402 reinterpret_cast<i::HeapObject**>(parent_location),
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
7572 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7570 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7573 Address callback_address = 7571 Address callback_address =
7574 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7572 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7575 VMState<EXTERNAL> state(isolate); 7573 VMState<EXTERNAL> state(isolate);
7576 ExternalCallbackScope call_scope(isolate, callback_address); 7574 ExternalCallbackScope call_scope(isolate, callback_address);
7577 callback(info); 7575 callback(info);
7578 } 7576 }
7579 7577
7580 7578
7581 } } // namespace v8::internal 7579 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698