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

Side by Side Diff: src/d8.h

Issue 12716010: Added a version of the v8::HandleScope constructor with an Isolate and use that consistently. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback. Rebased Created 7 years, 9 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/api.cc ('k') | src/d8.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 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 SourceGroup* isolate_sources; 258 SourceGroup* isolate_sources;
259 }; 259 };
260 260
261 #ifdef V8_SHARED 261 #ifdef V8_SHARED
262 class Shell { 262 class Shell {
263 #else 263 #else
264 class Shell : public i::AllStatic { 264 class Shell : public i::AllStatic {
265 #endif // V8_SHARED 265 #endif // V8_SHARED
266 266
267 public: 267 public:
268 static bool ExecuteString(Handle<String> source, 268 static bool ExecuteString(Isolate* isolate,
269 Handle<String> source,
269 Handle<Value> name, 270 Handle<Value> name,
270 bool print_result, 271 bool print_result,
271 bool report_exceptions); 272 bool report_exceptions);
272 static const char* ToCString(const v8::String::Utf8Value& value); 273 static const char* ToCString(const v8::String::Utf8Value& value);
273 static void ReportException(TryCatch* try_catch); 274 static void ReportException(Isolate* isolate, TryCatch* try_catch);
274 static Handle<String> ReadFile(Isolate* isolate, const char* name); 275 static Handle<String> ReadFile(Isolate* isolate, const char* name);
275 static Persistent<Context> CreateEvaluationContext(Isolate* isolate); 276 static Persistent<Context> CreateEvaluationContext(Isolate* isolate);
276 static int RunMain(Isolate* isolate, int argc, char* argv[]); 277 static int RunMain(Isolate* isolate, int argc, char* argv[]);
277 static int Main(int argc, char* argv[]); 278 static int Main(int argc, char* argv[]);
278 static void Exit(int exit_code); 279 static void Exit(int exit_code);
279 static void OnExit(); 280 static void OnExit();
280 281
281 #ifndef V8_SHARED 282 #ifndef V8_SHARED
282 static Handle<Array> GetCompletions(Handle<String> text, 283 static Handle<Array> GetCompletions(Isolate* isolate,
284 Handle<String> text,
283 Handle<String> full); 285 Handle<String> full);
284 static int* LookupCounter(const char* name); 286 static int* LookupCounter(const char* name);
285 static void* CreateHistogram(const char* name, 287 static void* CreateHistogram(const char* name,
286 int min, 288 int min,
287 int max, 289 int max,
288 size_t buckets); 290 size_t buckets);
289 static void AddHistogramSample(void* histogram, int sample); 291 static void AddHistogramSample(void* histogram, int sample);
290 static void MapCounters(const char* name); 292 static void MapCounters(const char* name);
291 293
292 #ifdef ENABLE_DEBUGGER_SUPPORT 294 #ifdef ENABLE_DEBUGGER_SUPPORT
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 static void ExternalArrayWeakCallback(Isolate* isolate, 408 static void ExternalArrayWeakCallback(Isolate* isolate,
407 Persistent<Value> object, 409 Persistent<Value> object,
408 void* data); 410 void* data);
409 }; 411 };
410 412
411 413
412 } // namespace v8 414 } // namespace v8
413 415
414 416
415 #endif // V8_D8_H_ 417 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698