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

Side by Side Diff: src/factory.cc

Issue 23757017: remove Isolate::Current from most files starting with 'o' through 'r' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | « src/execution.cc ('k') | src/ic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 Vector<char> v(buffer, kBufferSize); 799 Vector<char> v(buffer, kBufferSize);
800 OS::StrNCpy(v, message, space); 800 OS::StrNCpy(v, message, space);
801 space -= Min(space, strlen(message)); 801 space -= Min(space, strlen(message));
802 p = &buffer[kBufferSize] - space; 802 p = &buffer[kBufferSize] - space;
803 803
804 for (unsigned i = 0; i < ARRAY_SIZE(args); i++) { 804 for (unsigned i = 0; i < ARRAY_SIZE(args); i++) {
805 if (space > 0) { 805 if (space > 0) {
806 *p++ = ' '; 806 *p++ = ' ';
807 space--; 807 space--;
808 if (space > 0) { 808 if (space > 0) {
809 MaybeObject* maybe_arg = args->GetElement(i); 809 MaybeObject* maybe_arg = args->GetElement(isolate(), i);
810 Handle<String> arg_str(reinterpret_cast<String*>(maybe_arg)); 810 Handle<String> arg_str(reinterpret_cast<String*>(maybe_arg));
811 const char* arg = *arg_str->ToCString(); 811 const char* arg = *arg_str->ToCString();
812 Vector<char> v2(p, static_cast<int>(space)); 812 Vector<char> v2(p, static_cast<int>(space));
813 OS::StrNCpy(v2, arg, space); 813 OS::StrNCpy(v2, arg, space);
814 space -= Min(space, strlen(arg)); 814 space -= Min(space, strlen(arg));
815 p = &buffer[kBufferSize] - space; 815 p = &buffer[kBufferSize] - space;
816 } 816 }
817 } 817 }
818 } 818 }
819 if (space > 0) { 819 if (space > 0) {
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 Handle<String> name, 1314 Handle<String> name,
1315 LanguageMode language_mode) { 1315 LanguageMode language_mode) {
1316 Handle<JSFunction> fun = 1316 Handle<JSFunction> fun =
1317 NewFunctionWithoutPrototypeHelper(name, language_mode); 1317 NewFunctionWithoutPrototypeHelper(name, language_mode);
1318 fun->set_context(isolate()->context()->native_context()); 1318 fun->set_context(isolate()->context()->native_context());
1319 return fun; 1319 return fun;
1320 } 1320 }
1321 1321
1322 1322
1323 Handle<Object> Factory::ToObject(Handle<Object> object) { 1323 Handle<Object> Factory::ToObject(Handle<Object> object) {
1324 CALL_HEAP_FUNCTION(isolate(), object->ToObject(), Object); 1324 CALL_HEAP_FUNCTION(isolate(), object->ToObject(isolate()), Object);
1325 } 1325 }
1326 1326
1327 1327
1328 Handle<Object> Factory::ToObject(Handle<Object> object, 1328 Handle<Object> Factory::ToObject(Handle<Object> object,
1329 Handle<Context> native_context) { 1329 Handle<Context> native_context) {
1330 CALL_HEAP_FUNCTION(isolate(), object->ToObject(*native_context), Object); 1330 CALL_HEAP_FUNCTION(isolate(), object->ToObject(*native_context), Object);
1331 } 1331 }
1332 1332
1333 1333
1334 #ifdef ENABLE_DEBUGGER_SUPPORT 1334 #ifdef ENABLE_DEBUGGER_SUPPORT
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 return Handle<Object>::null(); 1604 return Handle<Object>::null();
1605 } 1605 }
1606 1606
1607 1607
1608 Handle<Object> Factory::ToBoolean(bool value) { 1608 Handle<Object> Factory::ToBoolean(bool value) {
1609 return value ? true_value() : false_value(); 1609 return value ? true_value() : false_value();
1610 } 1610 }
1611 1611
1612 1612
1613 } } // namespace v8::internal 1613 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698