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

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

Issue 19485008: Replace CONSTANT_FUNCTION by CONSTANT (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments 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
« no previous file with comments | « src/objects.cc ('k') | src/objects-printer.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 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 PropertyType DescriptorArray::GetType(int descriptor_number) { 2345 PropertyType DescriptorArray::GetType(int descriptor_number) {
2346 return GetDetails(descriptor_number).type(); 2346 return GetDetails(descriptor_number).type();
2347 } 2347 }
2348 2348
2349 2349
2350 int DescriptorArray::GetFieldIndex(int descriptor_number) { 2350 int DescriptorArray::GetFieldIndex(int descriptor_number) {
2351 return GetDetails(descriptor_number).field_index(); 2351 return GetDetails(descriptor_number).field_index();
2352 } 2352 }
2353 2353
2354 2354
2355 JSFunction* DescriptorArray::GetConstantFunction(int descriptor_number) { 2355 Object* DescriptorArray::GetConstant(int descriptor_number) {
2356 return JSFunction::cast(GetValue(descriptor_number)); 2356 return GetValue(descriptor_number);
2357 } 2357 }
2358 2358
2359 2359
2360 Object* DescriptorArray::GetCallbacksObject(int descriptor_number) { 2360 Object* DescriptorArray::GetCallbacksObject(int descriptor_number) {
2361 ASSERT(GetType(descriptor_number) == CALLBACKS); 2361 ASSERT(GetType(descriptor_number) == CALLBACKS);
2362 return GetValue(descriptor_number); 2362 return GetValue(descriptor_number);
2363 } 2363 }
2364 2364
2365 2365
2366 AccessorDescriptor* DescriptorArray::GetCallbacks(int descriptor_number) { 2366 AccessorDescriptor* DescriptorArray::GetCallbacks(int descriptor_number) {
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
3641 if (FLAG_track_fields && details.representation().IsSmi()) { 3641 if (FLAG_track_fields && details.representation().IsSmi()) {
3642 return true; 3642 return true;
3643 } 3643 }
3644 if (FLAG_track_double_fields && details.representation().IsDouble()) { 3644 if (FLAG_track_double_fields && details.representation().IsDouble()) {
3645 return true; 3645 return true;
3646 } 3646 }
3647 if (FLAG_track_heap_object_fields && 3647 if (FLAG_track_heap_object_fields &&
3648 details.representation().IsHeapObject()) { 3648 details.representation().IsHeapObject()) {
3649 return true; 3649 return true;
3650 } 3650 }
3651 if (FLAG_track_fields && details.type() == CONSTANT_FUNCTION) { 3651 if (FLAG_track_fields && details.type() == CONSTANT) {
3652 return true; 3652 return true;
3653 } 3653 }
3654 } 3654 }
3655 return false; 3655 return false;
3656 } 3656 }
3657 3657
3658 3658
3659 void Map::NotifyLeafMapLayoutChange() { 3659 void Map::NotifyLeafMapLayoutChange() {
3660 dependent_code()->DeoptimizeDependentCodeGroup( 3660 dependent_code()->DeoptimizeDependentCodeGroup(
3661 GetIsolate(), 3661 GetIsolate(),
(...skipping 2538 matching lines...) Expand 10 before | Expand all | Expand 10 after
6200 #undef WRITE_UINT32_FIELD 6200 #undef WRITE_UINT32_FIELD
6201 #undef READ_SHORT_FIELD 6201 #undef READ_SHORT_FIELD
6202 #undef WRITE_SHORT_FIELD 6202 #undef WRITE_SHORT_FIELD
6203 #undef READ_BYTE_FIELD 6203 #undef READ_BYTE_FIELD
6204 #undef WRITE_BYTE_FIELD 6204 #undef WRITE_BYTE_FIELD
6205 6205
6206 6206
6207 } } // namespace v8::internal 6207 } } // namespace v8::internal
6208 6208
6209 #endif // V8_OBJECTS_INL_H_ 6209 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698