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

Side by Side Diff: src/objects.h

Issue 6480070: Merge revisions 6611, 6795, 6797 to the 3.0 branch... (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.0/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after
3269 inline void set_allow_osr_at_loop_nesting_level(int level); 3269 inline void set_allow_osr_at_loop_nesting_level(int level);
3270 inline int allow_osr_at_loop_nesting_level(); 3270 inline int allow_osr_at_loop_nesting_level();
3271 3271
3272 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots 3272 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots
3273 // reserved in the code prologue. 3273 // reserved in the code prologue.
3274 inline unsigned stack_slots(); 3274 inline unsigned stack_slots();
3275 inline void set_stack_slots(unsigned slots); 3275 inline void set_stack_slots(unsigned slots);
3276 3276
3277 // [safepoint_table_start]: For kind OPTIMIZED_CODE, the offset in 3277 // [safepoint_table_start]: For kind OPTIMIZED_CODE, the offset in
3278 // the instruction stream where the safepoint table starts. 3278 // the instruction stream where the safepoint table starts.
3279 inline unsigned safepoint_table_start(); 3279 inline unsigned safepoint_table_offset();
3280 inline void set_safepoint_table_start(unsigned offset); 3280 inline void set_safepoint_table_offset(unsigned offset);
3281 3281
3282 // [stack_check_table_start]: For kind FUNCTION, the offset in the 3282 // [stack_check_table_start]: For kind FUNCTION, the offset in the
3283 // instruction stream where the stack check table starts. 3283 // instruction stream where the stack check table starts.
3284 inline unsigned stack_check_table_start(); 3284 inline unsigned stack_check_table_offset();
3285 inline void set_stack_check_table_start(unsigned offset); 3285 inline void set_stack_check_table_offset(unsigned offset);
3286 3286
3287 // [check type]: For kind CALL_IC, tells how to check if the 3287 // [check type]: For kind CALL_IC, tells how to check if the
3288 // receiver is valid for the given call. 3288 // receiver is valid for the given call.
3289 inline CheckType check_type(); 3289 inline CheckType check_type();
3290 inline void set_check_type(CheckType value); 3290 inline void set_check_type(CheckType value);
3291 3291
3292 // [binary op type]: For all BINARY_OP_IC. 3292 // [binary op type]: For all BINARY_OP_IC.
3293 inline byte binary_op_type(); 3293 inline byte binary_op_type();
3294 inline void set_binary_op_type(byte value); 3294 inline void set_binary_op_type(byte value);
3295 3295
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
3439 static const int kCheckTypeOffset = kKindSpecificFlagsOffset; 3439 static const int kCheckTypeOffset = kKindSpecificFlagsOffset;
3440 3440
3441 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; 3441 static const int kCompareStateOffset = kStubMajorKeyOffset + 1;
3442 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; 3442 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1;
3443 static const int kHasDeoptimizationSupportOffset = kOptimizableOffset + 1; 3443 static const int kHasDeoptimizationSupportOffset = kOptimizableOffset + 1;
3444 3444
3445 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; 3445 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1;
3446 static const int kAllowOSRAtLoopNestingLevelOffset = 3446 static const int kAllowOSRAtLoopNestingLevelOffset =
3447 kHasDeoptimizationSupportOffset + 1; 3447 kHasDeoptimizationSupportOffset + 1;
3448 3448
3449 static const int kSafepointTableStartOffset = kStackSlotsOffset + kIntSize; 3449 static const int kSafepointTableOffsetOffset = kStackSlotsOffset + kIntSize;
3450 static const int kStackCheckTableStartOffset = kStackSlotsOffset + kIntSize; 3450 static const int kStackCheckTableOffsetOffset = kStackSlotsOffset + kIntSize;
3451 3451
3452 // Flags layout. 3452 // Flags layout.
3453 static const int kFlagsICStateShift = 0; 3453 static const int kFlagsICStateShift = 0;
3454 static const int kFlagsICInLoopShift = 3; 3454 static const int kFlagsICInLoopShift = 3;
3455 static const int kFlagsTypeShift = 4; 3455 static const int kFlagsTypeShift = 4;
3456 static const int kFlagsKindShift = 7; 3456 static const int kFlagsKindShift = 7;
3457 static const int kFlagsICHolderShift = 11; 3457 static const int kFlagsICHolderShift = 11;
3458 static const int kFlagsExtraICStateShift = 12; 3458 static const int kFlagsExtraICStateShift = 12;
3459 static const int kFlagsArgumentsCountShift = 14; 3459 static const int kFlagsArgumentsCountShift = 14;
3460 3460
(...skipping 3032 matching lines...) Expand 10 before | Expand all | Expand 10 after
6493 } else { 6493 } else {
6494 value &= ~(1 << bit_position); 6494 value &= ~(1 << bit_position);
6495 } 6495 }
6496 return value; 6496 return value;
6497 } 6497 }
6498 }; 6498 };
6499 6499
6500 } } // namespace v8::internal 6500 } } // namespace v8::internal
6501 6501
6502 #endif // V8_OBJECTS_H_ 6502 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698