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

Side by Side Diff: src/d8.h

Issue 14404005: Add d8 functionality for switching between realms (a.k.a. contexts), 2nd try (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make realms work again interactively Created 7 years, 8 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 | 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 static void AddHistogramSample(void* histogram, int sample); 291 static void AddHistogramSample(void* histogram, int sample);
292 static void MapCounters(const char* name); 292 static void MapCounters(const char* name);
293 293
294 #ifdef ENABLE_DEBUGGER_SUPPORT 294 #ifdef ENABLE_DEBUGGER_SUPPORT
295 static Handle<Object> DebugMessageDetails(Handle<String> message); 295 static Handle<Object> DebugMessageDetails(Handle<String> message);
296 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); 296 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command);
297 static void DispatchDebugMessages(); 297 static void DispatchDebugMessages();
298 #endif // ENABLE_DEBUGGER_SUPPORT 298 #endif // ENABLE_DEBUGGER_SUPPORT
299 #endif // V8_SHARED 299 #endif // V8_SHARED
300 300
301 static Handle<Value> RealmCurrent(const Arguments& args);
302 static Handle<Value> RealmOwner(const Arguments& args);
303 static Handle<Value> RealmGlobal(const Arguments& args);
304 static Handle<Value> RealmCreate(const Arguments& args);
305 static Handle<Value> RealmDispose(const Arguments& args);
306 static Handle<Value> RealmSwitch(const Arguments& args);
307 static Handle<Value> RealmEval(const Arguments& args);
308 static Handle<Value> RealmSharedGet(Local<String> property,
309 const AccessorInfo& info);
310 static void RealmSharedSet(Local<String> property,
311 Local<Value> value,
312 const AccessorInfo& info);
313
301 static Handle<Value> Print(const Arguments& args); 314 static Handle<Value> Print(const Arguments& args);
302 static Handle<Value> Write(const Arguments& args); 315 static Handle<Value> Write(const Arguments& args);
303 static Handle<Value> Quit(const Arguments& args); 316 static Handle<Value> Quit(const Arguments& args);
304 static Handle<Value> Version(const Arguments& args); 317 static Handle<Value> Version(const Arguments& args);
305 static Handle<Value> EnableProfiler(const Arguments& args); 318 static Handle<Value> EnableProfiler(const Arguments& args);
306 static Handle<Value> DisableProfiler(const Arguments& args); 319 static Handle<Value> DisableProfiler(const Arguments& args);
307 static Handle<Value> Read(const Arguments& args); 320 static Handle<Value> Read(const Arguments& args);
308 static Handle<Value> ReadBuffer(const Arguments& args); 321 static Handle<Value> ReadBuffer(const Arguments& args);
309 static Handle<String> ReadFromStdin(Isolate* isolate); 322 static Handle<String> ReadFromStdin(Isolate* isolate);
310 static Handle<Value> ReadLine(const Arguments& args) { 323 static Handle<Value> ReadLine(const Arguments& args) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 static void ExternalArrayWeakCallback(Isolate* isolate, 416 static void ExternalArrayWeakCallback(Isolate* isolate,
404 Persistent<Value> object, 417 Persistent<Value> object,
405 void* data); 418 void* data);
406 }; 419 };
407 420
408 421
409 } // namespace v8 422 } // namespace v8
410 423
411 424
412 #endif // V8_D8_H_ 425 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698