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

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

Issue 2497523002: [promises] Move promise constructor to TFS (Closed)
Patch Set: fixees Created 4 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
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 4209 matching lines...) Expand 10 before | Expand all | Expand 10 after
4220 STATIC_ASSERT(AbstractCode::kMaxLoopNestingMarker < kMaxInt8); 4220 STATIC_ASSERT(AbstractCode::kMaxLoopNestingMarker < kMaxInt8);
4221 WRITE_INT8_FIELD(this, kOSRNestingLevelOffset, depth); 4221 WRITE_INT8_FIELD(this, kOSRNestingLevelOffset, depth);
4222 } 4222 }
4223 4223
4224 int BytecodeArray::parameter_count() const { 4224 int BytecodeArray::parameter_count() const {
4225 // Parameter count is stored as the size on stack of the parameters to allow 4225 // Parameter count is stored as the size on stack of the parameters to allow
4226 // it to be used directly by generated code. 4226 // it to be used directly by generated code.
4227 return READ_INT_FIELD(this, kParameterSizeOffset) >> kPointerSizeLog2; 4227 return READ_INT_FIELD(this, kParameterSizeOffset) >> kPointerSizeLog2;
4228 } 4228 }
4229 4229
4230 4230 INT_ACCESSORS(Code, exception_hint, kExceptionHintOffset);
4231 ACCESSORS(BytecodeArray, constant_pool, FixedArray, kConstantPoolOffset) 4231 ACCESSORS(BytecodeArray, constant_pool, FixedArray, kConstantPoolOffset)
4232 ACCESSORS(BytecodeArray, handler_table, FixedArray, kHandlerTableOffset) 4232 ACCESSORS(BytecodeArray, handler_table, FixedArray, kHandlerTableOffset)
4233 ACCESSORS(BytecodeArray, source_position_table, ByteArray, 4233 ACCESSORS(BytecodeArray, source_position_table, ByteArray,
4234 kSourcePositionTableOffset) 4234 kSourcePositionTableOffset)
4235 4235
4236 Address BytecodeArray::GetFirstBytecodeAddress() { 4236 Address BytecodeArray::GetFirstBytecodeAddress() {
4237 return reinterpret_cast<Address>(this) - kHeapObjectTag + kHeaderSize; 4237 return reinterpret_cast<Address>(this) - kHeapObjectTag + kHeaderSize;
4238 } 4238 }
4239 4239
4240 4240
(...skipping 4203 matching lines...) Expand 10 before | Expand all | Expand 10 after
8444 #undef WRITE_INT64_FIELD 8444 #undef WRITE_INT64_FIELD
8445 #undef READ_BYTE_FIELD 8445 #undef READ_BYTE_FIELD
8446 #undef WRITE_BYTE_FIELD 8446 #undef WRITE_BYTE_FIELD
8447 #undef NOBARRIER_READ_BYTE_FIELD 8447 #undef NOBARRIER_READ_BYTE_FIELD
8448 #undef NOBARRIER_WRITE_BYTE_FIELD 8448 #undef NOBARRIER_WRITE_BYTE_FIELD
8449 8449
8450 } // namespace internal 8450 } // namespace internal
8451 } // namespace v8 8451 } // namespace v8
8452 8452
8453 #endif // V8_OBJECTS_INL_H_ 8453 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.h ('K') | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698