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

Side by Side Diff: src/objects-inl.h

Issue 1466643002: [turbofan] Initial support for Array constructor specialization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
« src/handles.h ('K') | « src/objects.h ('k') | src/types.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 6241 matching lines...) Expand 10 before | Expand all | Expand 10 after
6252 Context* JSFunction::context() { 6252 Context* JSFunction::context() {
6253 return Context::cast(READ_FIELD(this, kContextOffset)); 6253 return Context::cast(READ_FIELD(this, kContextOffset));
6254 } 6254 }
6255 6255
6256 6256
6257 JSObject* JSFunction::global_proxy() { 6257 JSObject* JSFunction::global_proxy() {
6258 return context()->global_proxy(); 6258 return context()->global_proxy();
6259 } 6259 }
6260 6260
6261 6261
6262 Context* JSFunction::native_context() { return context()->native_context(); }
6263
6264
6262 void JSFunction::set_context(Object* value) { 6265 void JSFunction::set_context(Object* value) {
6263 DCHECK(value->IsUndefined() || value->IsContext()); 6266 DCHECK(value->IsUndefined() || value->IsContext());
6264 WRITE_FIELD(this, kContextOffset, value); 6267 WRITE_FIELD(this, kContextOffset, value);
6265 WRITE_BARRIER(GetHeap(), this, kContextOffset, value); 6268 WRITE_BARRIER(GetHeap(), this, kContextOffset, value);
6266 } 6269 }
6267 6270
6268 ACCESSORS(JSFunction, prototype_or_initial_map, Object, 6271 ACCESSORS(JSFunction, prototype_or_initial_map, Object,
6269 kPrototypeOrInitialMapOffset) 6272 kPrototypeOrInitialMapOffset)
6270 6273
6271 6274
(...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after
7889 #undef WRITE_INT64_FIELD 7892 #undef WRITE_INT64_FIELD
7890 #undef READ_BYTE_FIELD 7893 #undef READ_BYTE_FIELD
7891 #undef WRITE_BYTE_FIELD 7894 #undef WRITE_BYTE_FIELD
7892 #undef NOBARRIER_READ_BYTE_FIELD 7895 #undef NOBARRIER_READ_BYTE_FIELD
7893 #undef NOBARRIER_WRITE_BYTE_FIELD 7896 #undef NOBARRIER_WRITE_BYTE_FIELD
7894 7897
7895 } // namespace internal 7898 } // namespace internal
7896 } // namespace v8 7899 } // namespace v8
7897 7900
7898 #endif // V8_OBJECTS_INL_H_ 7901 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/handles.h ('K') | « src/objects.h ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698