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

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

Issue 1665833002: [interpreter] Switch context during stack unwinding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 4 years, 10 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
« no previous file with comments | « src/objects.h ('k') | test/cctest/interpreter/test-bytecode-generator.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 3397 matching lines...) Expand 10 before | Expand all | Expand 10 after
3408 3408
3409 int HandlerTable::GetRangeEnd(int index) const { 3409 int HandlerTable::GetRangeEnd(int index) const {
3410 return Smi::cast(get(index * kRangeEntrySize + kRangeEndIndex))->value(); 3410 return Smi::cast(get(index * kRangeEntrySize + kRangeEndIndex))->value();
3411 } 3411 }
3412 3412
3413 int HandlerTable::GetRangeHandler(int index) const { 3413 int HandlerTable::GetRangeHandler(int index) const {
3414 return HandlerOffsetField::decode( 3414 return HandlerOffsetField::decode(
3415 Smi::cast(get(index * kRangeEntrySize + kRangeHandlerIndex))->value()); 3415 Smi::cast(get(index * kRangeEntrySize + kRangeHandlerIndex))->value());
3416 } 3416 }
3417 3417
3418 int HandlerTable::GetRangeDepth(int index) const {
3419 return Smi::cast(get(index * kRangeEntrySize + kRangeDepthIndex))->value();
3420 }
3421
3418 void HandlerTable::SetRangeStart(int index, int value) { 3422 void HandlerTable::SetRangeStart(int index, int value) {
3419 set(index * kRangeEntrySize + kRangeStartIndex, Smi::FromInt(value)); 3423 set(index * kRangeEntrySize + kRangeStartIndex, Smi::FromInt(value));
3420 } 3424 }
3421 3425
3422 3426
3423 void HandlerTable::SetRangeEnd(int index, int value) { 3427 void HandlerTable::SetRangeEnd(int index, int value) {
3424 set(index * kRangeEntrySize + kRangeEndIndex, Smi::FromInt(value)); 3428 set(index * kRangeEntrySize + kRangeEndIndex, Smi::FromInt(value));
3425 } 3429 }
3426 3430
3427 3431
(...skipping 4411 matching lines...) Expand 10 before | Expand all | Expand 10 after
7839 #undef WRITE_INT64_FIELD 7843 #undef WRITE_INT64_FIELD
7840 #undef READ_BYTE_FIELD 7844 #undef READ_BYTE_FIELD
7841 #undef WRITE_BYTE_FIELD 7845 #undef WRITE_BYTE_FIELD
7842 #undef NOBARRIER_READ_BYTE_FIELD 7846 #undef NOBARRIER_READ_BYTE_FIELD
7843 #undef NOBARRIER_WRITE_BYTE_FIELD 7847 #undef NOBARRIER_WRITE_BYTE_FIELD
7844 7848
7845 } // namespace internal 7849 } // namespace internal
7846 } // namespace v8 7850 } // namespace v8
7847 7851
7848 #endif // V8_OBJECTS_INL_H_ 7852 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698