OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 == JSFunction::kSize); | 1125 == JSFunction::kSize); |
1126 } else if (obj->IsGlobalObject()) { | 1126 } else if (obj->IsGlobalObject()) { |
1127 GlobalObject* global_obj = GlobalObject::cast(obj); | 1127 GlobalObject* global_obj = GlobalObject::cast(obj); |
1128 SetInternalReference(global_obj, entry, | 1128 SetInternalReference(global_obj, entry, |
1129 "builtins", global_obj->builtins(), | 1129 "builtins", global_obj->builtins(), |
1130 GlobalObject::kBuiltinsOffset); | 1130 GlobalObject::kBuiltinsOffset); |
1131 SetInternalReference(global_obj, entry, | 1131 SetInternalReference(global_obj, entry, |
1132 "native_context", global_obj->native_context(), | 1132 "native_context", global_obj->native_context(), |
1133 GlobalObject::kNativeContextOffset); | 1133 GlobalObject::kNativeContextOffset); |
1134 SetInternalReference(global_obj, entry, | 1134 SetInternalReference(global_obj, entry, |
| 1135 "global_context", global_obj->global_context(), |
| 1136 GlobalObject::kGlobalContextOffset); |
| 1137 SetInternalReference(global_obj, entry, |
1135 "global_receiver", global_obj->global_receiver(), | 1138 "global_receiver", global_obj->global_receiver(), |
1136 GlobalObject::kGlobalReceiverOffset); | 1139 GlobalObject::kGlobalReceiverOffset); |
| 1140 STATIC_CHECK(GlobalObject::kHeaderSize - JSObject::kHeaderSize == |
| 1141 4 * kPointerSize); |
1137 } else if (obj->IsJSArrayBufferView()) { | 1142 } else if (obj->IsJSArrayBufferView()) { |
1138 JSArrayBufferView* view = JSArrayBufferView::cast(obj); | 1143 JSArrayBufferView* view = JSArrayBufferView::cast(obj); |
1139 SetInternalReference(view, entry, "buffer", view->buffer(), | 1144 SetInternalReference(view, entry, "buffer", view->buffer(), |
1140 JSArrayBufferView::kBufferOffset); | 1145 JSArrayBufferView::kBufferOffset); |
1141 SetWeakReference(view, entry, "weak_next", view->weak_next(), | 1146 SetWeakReference(view, entry, "weak_next", view->weak_next(), |
1142 JSArrayBufferView::kWeakNextOffset); | 1147 JSArrayBufferView::kWeakNextOffset); |
1143 } else if (obj->IsJSArrayBuffer()) { | 1148 } else if (obj->IsJSArrayBuffer()) { |
1144 JSArrayBuffer* buffer = JSArrayBuffer::cast(obj); | 1149 JSArrayBuffer* buffer = JSArrayBuffer::cast(obj); |
1145 SetWeakReference(buffer, entry, "weak_next", buffer->weak_next(), | 1150 SetWeakReference(buffer, entry, "weak_next", buffer->weak_next(), |
1146 JSArrayBuffer::kWeakNextOffset); | 1151 JSArrayBuffer::kWeakNextOffset); |
(...skipping 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2988 writer_->AddString("\"<dummy>\""); | 2993 writer_->AddString("\"<dummy>\""); |
2989 for (int i = 1; i < sorted_strings.length(); ++i) { | 2994 for (int i = 1; i < sorted_strings.length(); ++i) { |
2990 writer_->AddCharacter(','); | 2995 writer_->AddCharacter(','); |
2991 SerializeString(sorted_strings[i]); | 2996 SerializeString(sorted_strings[i]); |
2992 if (writer_->aborted()) return; | 2997 if (writer_->aborted()) return; |
2993 } | 2998 } |
2994 } | 2999 } |
2995 | 3000 |
2996 | 3001 |
2997 } } // namespace v8::internal | 3002 } } // namespace v8::internal |
OLD | NEW |