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

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

Issue 19638014: Factor out common code from platform-specific deoptimization. Fix Deoptimizer not to need to partit… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 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 5206 matching lines...) Expand 10 before | Expand all | Expand 10 after
5217 kind() == BINARY_OP_IC || 5217 kind() == BINARY_OP_IC ||
5218 kind() == STUB || 5218 kind() == STUB ||
5219 kind() == LOAD_IC || 5219 kind() == LOAD_IC ||
5220 kind() == KEYED_LOAD_IC || 5220 kind() == KEYED_LOAD_IC ||
5221 kind() == STORE_IC || 5221 kind() == STORE_IC ||
5222 kind() == KEYED_STORE_IC); 5222 kind() == KEYED_STORE_IC);
5223 WRITE_FIELD(this, kTypeFeedbackInfoOffset, Smi::FromInt(value)); 5223 WRITE_FIELD(this, kTypeFeedbackInfoOffset, Smi::FromInt(value));
5224 } 5224 }
5225 5225
5226 5226
5227 void Code::set_deoptimizing_functions(Object* value) {
5228 ASSERT(kind() == OPTIMIZED_FUNCTION);
5229 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value);
5230 }
5231
5232
5233 Object* Code::deoptimizing_functions() {
5234 ASSERT(kind() == OPTIMIZED_FUNCTION);
5235 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset));
5236 }
5237
5238
5239 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) 5227 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset)
5240 INT_ACCESSORS(Code, ic_age, kICAgeOffset) 5228 INT_ACCESSORS(Code, ic_age, kICAgeOffset)
5241 5229
5242 5230
5243 byte* Code::instruction_start() { 5231 byte* Code::instruction_start() {
5244 return FIELD_ADDR(this, kHeaderSize); 5232 return FIELD_ADDR(this, kHeaderSize);
5245 } 5233 }
5246 5234
5247 5235
5248 byte* Code::instruction_end() { 5236 byte* Code::instruction_end() {
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
6185 #undef WRITE_UINT32_FIELD 6173 #undef WRITE_UINT32_FIELD
6186 #undef READ_SHORT_FIELD 6174 #undef READ_SHORT_FIELD
6187 #undef WRITE_SHORT_FIELD 6175 #undef WRITE_SHORT_FIELD
6188 #undef READ_BYTE_FIELD 6176 #undef READ_BYTE_FIELD
6189 #undef WRITE_BYTE_FIELD 6177 #undef WRITE_BYTE_FIELD
6190 6178
6191 6179
6192 } } // namespace v8::internal 6180 } } // namespace v8::internal
6193 6181
6194 #endif // V8_OBJECTS_INL_H_ 6182 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.cc ('K') | « src/objects.cc ('k') | src/x64/deoptimizer-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698