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

Side by Side Diff: src/frame-element.h

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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/flag-definitions.h ('k') | src/full-codegen.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // Factory function to construct a frame element whose value is known at 100 // Factory function to construct a frame element whose value is known at
101 // compile time. 101 // compile time.
102 static FrameElement ConstantElement(Handle<Object> value, 102 static FrameElement ConstantElement(Handle<Object> value,
103 SyncFlag is_synced) { 103 SyncFlag is_synced) {
104 TypeInfo info = TypeInfo::TypeFromValue(value); 104 TypeInfo info = TypeInfo::TypeFromValue(value);
105 FrameElement result(value, is_synced, info); 105 FrameElement result(value, is_synced, info);
106 return result; 106 return result;
107 } 107 }
108 108
109 static bool ConstantPoolOverflowed() {
110 return !DataField::is_valid(
111 Isolate::Current()->frame_element_constant_list()->length());
112 }
113
109 bool is_synced() const { return SyncedField::decode(value_); } 114 bool is_synced() const { return SyncedField::decode(value_); }
110 115
111 void set_sync() { 116 void set_sync() {
112 ASSERT(type() != MEMORY); 117 ASSERT(type() != MEMORY);
113 value_ = value_ | SyncedField::encode(true); 118 value_ = value_ | SyncedField::encode(true);
114 } 119 }
115 120
116 void clear_sync() { 121 void clear_sync() {
117 ASSERT(type() != MEMORY); 122 ASSERT(type() != MEMORY);
118 value_ = value_ & ~SyncedField::mask(); 123 value_ = value_ & ~SyncedField::mask();
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 class UntaggedInt32Field: public BitField<bool, 5, 1> {}; 260 class UntaggedInt32Field: public BitField<bool, 5, 1> {};
256 class TypeInfoField: public BitField<int, 6, 7> {}; 261 class TypeInfoField: public BitField<int, 6, 7> {};
257 class DataField: public BitField<uint32_t, 13, 32 - 13> {}; 262 class DataField: public BitField<uint32_t, 13, 32 - 13> {};
258 263
259 friend class VirtualFrame; 264 friend class VirtualFrame;
260 }; 265 };
261 266
262 } } // namespace v8::internal 267 } } // namespace v8::internal
263 268
264 #endif // V8_FRAME_ELEMENT_H_ 269 #endif // V8_FRAME_ELEMENT_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698