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

Side by Side Diff: src/execution.cc

Issue 4888002: [Isolates] Pass isolate to VMState constructor. (Closed)
Patch Set: Created 10 years, 1 month 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 static Handle<Object> Invoke(bool construct, 66 static Handle<Object> Invoke(bool construct,
67 Handle<JSFunction> func, 67 Handle<JSFunction> func,
68 Handle<Object> receiver, 68 Handle<Object> receiver,
69 int argc, 69 int argc,
70 Object*** args, 70 Object*** args,
71 bool* has_pending_exception) { 71 bool* has_pending_exception) {
72 Isolate* isolate = func->GetIsolate(); 72 Isolate* isolate = func->GetIsolate();
73 73
74 // Entering JavaScript. 74 // Entering JavaScript.
75 VMState state(JS); 75 VMState state(isolate, JS);
76 76
77 // Placeholder for return value. 77 // Placeholder for return value.
78 MaybeObject* value = reinterpret_cast<Object*>(kZapValue); 78 MaybeObject* value = reinterpret_cast<Object*>(kZapValue);
79 79
80 typedef Object* (*JSEntryFunction)( 80 typedef Object* (*JSEntryFunction)(
81 byte* entry, 81 byte* entry,
82 Object* function, 82 Object* function,
83 Object* receiver, 83 Object* receiver,
84 int argc, 84 int argc,
85 Object*** args); 85 Object*** args);
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 return Utils::OpenHandle(*args[0].As<v8::String>())->IsAsciiRepresentation() ? 866 return Utils::OpenHandle(*args[0].As<v8::String>())->IsAsciiRepresentation() ?
867 v8::True() : v8::False(); 867 v8::True() : v8::False();
868 } 868 }
869 869
870 870
871 static ExternalizeStringExtension externalize_extension; 871 static ExternalizeStringExtension externalize_extension;
872 static v8::DeclareExtension externalize_extension_declaration( 872 static v8::DeclareExtension externalize_extension_declaration(
873 &externalize_extension); 873 &externalize_extension);
874 874
875 } } // namespace v8::internal 875 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/cpu-profiler.h ('k') | src/global-handles.h » ('j') | src/top.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698