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

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

Issue 16128004: Reorder switch clauses using newly-introduced execution counters in (Closed) Base URL: gh:v8/v8.git@master
Patch Set: tweak heuristic Created 7 years, 6 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.cc ('k') | src/type-info.h » ('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 5172 matching lines...) Expand 10 before | Expand all | Expand 10 after
5183 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize); 5183 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize);
5184 return reinterpret_cast<JSMessageObject*>(obj); 5184 return reinterpret_cast<JSMessageObject*>(obj);
5185 } 5185 }
5186 5186
5187 5187
5188 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) 5188 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset)
5189 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) 5189 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset)
5190 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) 5190 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset)
5191 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) 5191 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset)
5192 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) 5192 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset)
5193 ACCESSORS(Code, deopt_counter_cells, FixedArray, kDeoptCounterCellsOffset)
5193 5194
5194 5195
5195 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs. 5196 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs.
5196 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) { 5197 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) {
5197 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); 5198 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value);
5198 } 5199 }
5199 5200
5200 5201
5201 Object* Code::type_feedback_info() { 5202 Object* Code::type_feedback_info() {
5202 ASSERT(kind() == FUNCTION); 5203 ASSERT(kind() == FUNCTION);
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
6220 #undef WRITE_UINT32_FIELD 6221 #undef WRITE_UINT32_FIELD
6221 #undef READ_SHORT_FIELD 6222 #undef READ_SHORT_FIELD
6222 #undef WRITE_SHORT_FIELD 6223 #undef WRITE_SHORT_FIELD
6223 #undef READ_BYTE_FIELD 6224 #undef READ_BYTE_FIELD
6224 #undef WRITE_BYTE_FIELD 6225 #undef WRITE_BYTE_FIELD
6225 6226
6226 6227
6227 } } // namespace v8::internal 6228 } } // namespace v8::internal
6228 6229
6229 #endif // V8_OBJECTS_INL_H_ 6230 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698