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

Side by Side Diff: src/objects.h

Issue 13811014: Fix OSR for nested loops. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 8 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
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/objects.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 // 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 4485 matching lines...) Expand 10 before | Expand all | Expand 10 after
4496 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots 4496 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots
4497 // reserved in the code prologue. 4497 // reserved in the code prologue.
4498 inline unsigned stack_slots(); 4498 inline unsigned stack_slots();
4499 inline void set_stack_slots(unsigned slots); 4499 inline void set_stack_slots(unsigned slots);
4500 4500
4501 // [safepoint_table_start]: For kind OPTIMIZED_CODE, the offset in 4501 // [safepoint_table_start]: For kind OPTIMIZED_CODE, the offset in
4502 // the instruction stream where the safepoint table starts. 4502 // the instruction stream where the safepoint table starts.
4503 inline unsigned safepoint_table_offset(); 4503 inline unsigned safepoint_table_offset();
4504 inline void set_safepoint_table_offset(unsigned offset); 4504 inline void set_safepoint_table_offset(unsigned offset);
4505 4505
4506 // [stack_check_table_start]: For kind FUNCTION, the offset in the 4506 // [back_edge_table_start]: For kind FUNCTION, the offset in the
4507 // instruction stream where the stack check table starts. 4507 // instruction stream where the back edge table starts.
4508 inline unsigned stack_check_table_offset(); 4508 inline unsigned back_edge_table_offset();
4509 inline void set_stack_check_table_offset(unsigned offset); 4509 inline void set_back_edge_table_offset(unsigned offset);
4510 4510
4511 inline bool stack_check_patched_for_osr(); 4511 inline bool back_edges_patched_for_osr();
4512 inline void set_stack_check_patched_for_osr(bool value); 4512 inline void set_back_edges_patched_for_osr(bool value);
4513 4513
4514 // [check type]: For kind CALL_IC, tells how to check if the 4514 // [check type]: For kind CALL_IC, tells how to check if the
4515 // receiver is valid for the given call. 4515 // receiver is valid for the given call.
4516 inline CheckType check_type(); 4516 inline CheckType check_type();
4517 inline void set_check_type(CheckType value); 4517 inline void set_check_type(CheckType value);
4518 4518
4519 // [type-recording unary op type]: For kind UNARY_OP_IC. 4519 // [type-recording unary op type]: For kind UNARY_OP_IC.
4520 inline byte unary_op_type(); 4520 inline byte unary_op_type();
4521 inline void set_unary_op_type(byte value); 4521 inline void set_unary_op_type(byte value);
4522 4522
(...skipping 10 matching lines...) Expand all
4533 // [marked_for_deoptimization]: For kind OPTIMIZED_FUNCTION tells whether 4533 // [marked_for_deoptimization]: For kind OPTIMIZED_FUNCTION tells whether
4534 // the code is going to be deoptimized because of dead embedded maps. 4534 // the code is going to be deoptimized because of dead embedded maps.
4535 inline bool marked_for_deoptimization(); 4535 inline bool marked_for_deoptimization();
4536 inline void set_marked_for_deoptimization(bool flag); 4536 inline void set_marked_for_deoptimization(bool flag);
4537 4537
4538 bool allowed_in_shared_map_code_cache(); 4538 bool allowed_in_shared_map_code_cache();
4539 4539
4540 // Get the safepoint entry for the given pc. 4540 // Get the safepoint entry for the given pc.
4541 SafepointEntry GetSafepointEntry(Address pc); 4541 SafepointEntry GetSafepointEntry(Address pc);
4542 4542
4543 // Mark this code object as not having a stack check table. Assumes kind
4544 // is FUNCTION.
4545 void SetNoStackCheckTable();
4546
4547 // Find the first map in an IC stub. 4543 // Find the first map in an IC stub.
4548 Map* FindFirstMap(); 4544 Map* FindFirstMap();
4549 void FindAllMaps(MapHandleList* maps); 4545 void FindAllMaps(MapHandleList* maps);
4550 4546
4551 // Find the first code in an IC stub. 4547 // Find the first code in an IC stub.
4552 Code* FindFirstCode(); 4548 Code* FindFirstCode();
4553 void FindAllCode(CodeHandleList* code_list, int length); 4549 void FindAllCode(CodeHandleList* code_list, int length);
4554 4550
4555 class ExtraICStateStrictMode: public BitField<StrictModeFlag, 0, 1> {}; 4551 class ExtraICStateStrictMode: public BitField<StrictModeFlag, 0, 1> {};
4556 class ExtraICStateKeyedAccessStoreMode: 4552 class ExtraICStateKeyedAccessStoreMode:
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
4786 STATIC_ASSERT(kSafepointTableOffsetFirstBit + 4782 STATIC_ASSERT(kSafepointTableOffsetFirstBit +
4787 kSafepointTableOffsetBitCount <= 32); 4783 kSafepointTableOffsetBitCount <= 32);
4788 4784
4789 class SafepointTableOffsetField: public BitField<int, 4785 class SafepointTableOffsetField: public BitField<int,
4790 kSafepointTableOffsetFirstBit, 4786 kSafepointTableOffsetFirstBit,
4791 kSafepointTableOffsetBitCount> {}; // NOLINT 4787 kSafepointTableOffsetBitCount> {}; // NOLINT
4792 class StubMajorKeyField: public BitField<int, 4788 class StubMajorKeyField: public BitField<int,
4793 kStubMajorKeyFirstBit, kStubMajorKeyBits> {}; // NOLINT 4789 kStubMajorKeyFirstBit, kStubMajorKeyBits> {}; // NOLINT
4794 4790
4795 // KindSpecificFlags2 layout (FUNCTION) 4791 // KindSpecificFlags2 layout (FUNCTION)
4796 class StackCheckTableOffsetField: public BitField<int, 0, 31> {}; 4792 class BackEdgeTableOffsetField: public BitField<int, 0, 31> {};
4797 class StackCheckPatchedForOSRField: public BitField<bool, 31, 1> {}; 4793 class BackEdgesPatchedForOSRField: public BitField<bool, 31, 1> {};
4798 4794
4799 // Signed field cannot be encoded using the BitField class. 4795 // Signed field cannot be encoded using the BitField class.
4800 static const int kArgumentsCountShift = 17; 4796 static const int kArgumentsCountShift = 17;
4801 static const int kArgumentsCountMask = ~((1 << kArgumentsCountShift) - 1); 4797 static const int kArgumentsCountMask = ~((1 << kArgumentsCountShift) - 1);
4802 static const int kArgumentsBits = 4798 static const int kArgumentsBits =
4803 PlatformSmiTagging::kSmiValueSize - Code::kArgumentsCountShift + 1; 4799 PlatformSmiTagging::kSmiValueSize - Code::kArgumentsCountShift + 1;
4804 static const int kMaxArguments = (1 << kArgumentsBits) - 1; 4800 static const int kMaxArguments = (1 << kArgumentsBits) - 1;
4805 4801
4806 // This constant should be encodable in an ARM instruction. 4802 // This constant should be encodable in an ARM instruction.
4807 static const int kFlagsNotUsedInLookup = 4803 static const int kFlagsNotUsedInLookup =
(...skipping 4508 matching lines...) Expand 10 before | Expand all | Expand 10 after
9316 } else { 9312 } else {
9317 value &= ~(1 << bit_position); 9313 value &= ~(1 << bit_position);
9318 } 9314 }
9319 return value; 9315 return value;
9320 } 9316 }
9321 }; 9317 };
9322 9318
9323 } } // namespace v8::internal 9319 } } // namespace v8::internal
9324 9320
9325 #endif // V8_OBJECTS_H_ 9321 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698