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

Side by Side Diff: src/handles.h

Issue 16154027: New unified type representation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Jakob's comments Created 7 years, 6 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/types.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 template <class S> Handle(Handle<S> handle) { 54 template <class S> Handle(Handle<S> handle) {
55 #ifdef DEBUG 55 #ifdef DEBUG
56 T* a = NULL; 56 T* a = NULL;
57 S* b = NULL; 57 S* b = NULL;
58 a = b; // Fake assignment to enforce type checks. 58 a = b; // Fake assignment to enforce type checks.
59 USE(a); 59 USE(a);
60 #endif 60 #endif
61 location_ = reinterpret_cast<T**>(handle.location_); 61 location_ = reinterpret_cast<T**>(handle.location_);
62 } 62 }
63 63
64 INLINE(T* operator ->() const) { return operator*(); } 64 INLINE(T* operator->() const) { return operator*(); }
65 65
66 // Check if this handle refers to the exact same object as the other handle. 66 // Check if this handle refers to the exact same object as the other handle.
67 INLINE(bool is_identical_to(const Handle<T> other) const); 67 INLINE(bool is_identical_to(const Handle<T> other) const);
68 68
69 // Provides the C++ dereference operator. 69 // Provides the C++ dereference operator.
70 INLINE(T* operator*() const); 70 INLINE(T* operator*() const);
71 71
72 // Returns the address to where the raw pointer is stored. 72 // Returns the address to where the raw pointer is stored.
73 INLINE(T** location() const); 73 INLINE(T** location() const);
74 74
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 private: 344 private:
345 Isolate* isolate_; 345 Isolate* isolate_;
346 Object** limit_; 346 Object** limit_;
347 int level_; 347 int level_;
348 #endif 348 #endif
349 }; 349 };
350 350
351 } } // namespace v8::internal 351 } } // namespace v8::internal
352 352
353 #endif // V8_HANDLES_H_ 353 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | src/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698