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

Side by Side Diff: src/objects.h

Issue 14295011: Add d8 functionality for switching between realms (a.k.a. contexts) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make realm state per-isolate 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 | « src/debug.cc ('k') | test/mjsunit/bugs/bug-proto.js » ('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 8519 matching lines...) Expand 10 before | Expand all | Expand 10 after
8530 static const int kNextOffset = kTableOffset + kPointerSize; 8530 static const int kNextOffset = kTableOffset + kPointerSize;
8531 static const int kSize = kNextOffset + kPointerSize; 8531 static const int kSize = kNextOffset + kPointerSize;
8532 8532
8533 private: 8533 private:
8534 DISALLOW_IMPLICIT_CONSTRUCTORS(JSWeakMap); 8534 DISALLOW_IMPLICIT_CONSTRUCTORS(JSWeakMap);
8535 }; 8535 };
8536 8536
8537 8537
8538 class JSArrayBuffer: public JSObject { 8538 class JSArrayBuffer: public JSObject {
8539 public: 8539 public:
8540 // [backing_store]: backing memory for thsi array 8540 // [backing_store]: backing memory for this array
8541 DECL_ACCESSORS(backing_store, void) 8541 DECL_ACCESSORS(backing_store, void)
8542 8542
8543 // [byte_length]: length in bytes 8543 // [byte_length]: length in bytes
8544 DECL_ACCESSORS(byte_length, Object) 8544 DECL_ACCESSORS(byte_length, Object)
8545 8545
8546 // Casting. 8546 // Casting.
8547 static inline JSArrayBuffer* cast(Object* obj); 8547 static inline JSArrayBuffer* cast(Object* obj);
8548 8548
8549 // Dispatched behavior. 8549 // Dispatched behavior.
8550 DECLARE_PRINTER(JSArrayBuffer) 8550 DECLARE_PRINTER(JSArrayBuffer)
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
9356 } else { 9356 } else {
9357 value &= ~(1 << bit_position); 9357 value &= ~(1 << bit_position);
9358 } 9358 }
9359 return value; 9359 return value;
9360 } 9360 }
9361 }; 9361 };
9362 9362
9363 } } // namespace v8::internal 9363 } } // namespace v8::internal
9364 9364
9365 #endif // V8_OBJECTS_H_ 9365 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | test/mjsunit/bugs/bug-proto.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698