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

Side by Side Diff: src/api.cc

Issue 2840018: [Isolates] Moved more compilation-related globals (builtins, runtime, &c.)... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: rebase Created 10 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 | Annotate | Revision Log
OLDNEW
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 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 } 1444 }
1445 1445
1446 1446
1447 static i::Handle<i::Object> CallV8HeapFunction(const char* name, 1447 static i::Handle<i::Object> CallV8HeapFunction(const char* name,
1448 i::Handle<i::Object> recv, 1448 i::Handle<i::Object> recv,
1449 int argc, 1449 int argc,
1450 i::Object** argv[], 1450 i::Object** argv[],
1451 bool* has_pending_exception) { 1451 bool* has_pending_exception) {
1452 i::Handle<i::String> fmt_str = i::Factory::LookupAsciiSymbol(name); 1452 i::Handle<i::String> fmt_str = i::Factory::LookupAsciiSymbol(name);
1453 i::Object* object_fun = 1453 i::Object* object_fun =
1454 i::Isolate::Current()->builtins()->GetProperty(*fmt_str); 1454 i::Isolate::Current()->js_builtins_object()->GetProperty(*fmt_str);
1455 i::Handle<i::JSFunction> fun = 1455 i::Handle<i::JSFunction> fun =
1456 i::Handle<i::JSFunction>(i::JSFunction::cast(object_fun)); 1456 i::Handle<i::JSFunction>(i::JSFunction::cast(object_fun));
1457 i::Handle<i::Object> value = 1457 i::Handle<i::Object> value =
1458 i::Execution::Call(fun, recv, argc, argv, has_pending_exception); 1458 i::Execution::Call(fun, recv, argc, argv, has_pending_exception);
1459 return value; 1459 return value;
1460 } 1460 }
1461 1461
1462 1462
1463 static i::Handle<i::Object> CallV8HeapFunction(const char* name, 1463 static i::Handle<i::Object> CallV8HeapFunction(const char* name,
1464 i::Handle<i::Object> data, 1464 i::Handle<i::Object> data,
1465 bool* has_pending_exception) { 1465 bool* has_pending_exception) {
1466 i::Object** argv[1] = { data.location() }; 1466 i::Object** argv[1] = { data.location() };
1467 return CallV8HeapFunction(name, 1467 return CallV8HeapFunction(name,
1468 i::Isolate::Current()->builtins(), 1468 i::Isolate::Current()->js_builtins_object(),
1469 1, 1469 1,
1470 argv, 1470 argv,
1471 has_pending_exception); 1471 has_pending_exception);
1472 } 1472 }
1473 1473
1474 1474
1475 int Message::GetLineNumber() const { 1475 int Message::GetLineNumber() const {
1476 ON_BAILOUT("v8::Message::GetLineNumber()", return kNoLineNumberInfo); 1476 ON_BAILOUT("v8::Message::GetLineNumber()", return kNoLineNumberInfo);
1477 ENTER_V8; 1477 ENTER_V8;
1478 HandleScope scope; 1478 HandleScope scope;
(...skipping 3180 matching lines...) Expand 10 before | Expand all | Expand 10 after
4659 4659
4660 4660
4661 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 4661 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
4662 HandleScopeImplementer* thread_local = 4662 HandleScopeImplementer* thread_local =
4663 reinterpret_cast<HandleScopeImplementer*>(storage); 4663 reinterpret_cast<HandleScopeImplementer*>(storage);
4664 thread_local->IterateThis(v); 4664 thread_local->IterateThis(v);
4665 return storage + ArchiveSpacePerThread(); 4665 return storage + ArchiveSpacePerThread();
4666 } 4666 }
4667 4667
4668 } } // namespace v8::internal 4668 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/SConscript ('k') | src/arm/builtins-arm.cc » ('j') | src/runtime.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698