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

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

Issue 181283003: Symbols for type cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 6 years, 9 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/lithium-codegen-ia32.cc ('k') | src/runtime.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 6526 matching lines...) Expand 10 before | Expand all | Expand 10 after
6537 } 6537 }
6538 6538
6539 6539
6540 MaybeObject* ConstantPoolArray::Copy() { 6540 MaybeObject* ConstantPoolArray::Copy() {
6541 if (length() == 0) return this; 6541 if (length() == 0) return this;
6542 return GetHeap()->CopyConstantPoolArray(this); 6542 return GetHeap()->CopyConstantPoolArray(this);
6543 } 6543 }
6544 6544
6545 6545
6546 Handle<Object> TypeFeedbackInfo::UninitializedSentinel(Isolate* isolate) { 6546 Handle<Object> TypeFeedbackInfo::UninitializedSentinel(Isolate* isolate) {
6547 return isolate->factory()->the_hole_value(); 6547 return isolate->factory()->uninitialized_symbol();
6548 } 6548 }
6549 6549
6550 6550
6551 Handle<Object> TypeFeedbackInfo::MegamorphicSentinel(Isolate* isolate) { 6551 Handle<Object> TypeFeedbackInfo::MegamorphicSentinel(Isolate* isolate) {
6552 return isolate->factory()->undefined_value(); 6552 return isolate->factory()->megamorphic_symbol();
6553 } 6553 }
6554 6554
6555 6555
6556 Handle<Object> TypeFeedbackInfo::MonomorphicArraySentinel(Isolate* isolate, 6556 Handle<Object> TypeFeedbackInfo::MonomorphicArraySentinel(Isolate* isolate,
6557 ElementsKind elements_kind) { 6557 ElementsKind elements_kind) {
6558 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)), isolate); 6558 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)), isolate);
6559 } 6559 }
6560 6560
6561 6561
6562 Object* TypeFeedbackInfo::RawUninitializedSentinel(Heap* heap) { 6562 Object* TypeFeedbackInfo::RawUninitializedSentinel(Heap* heap) {
6563 return heap->the_hole_value(); 6563 return heap->uninitialized_symbol();
6564 } 6564 }
6565 6565
6566 6566
6567 int TypeFeedbackInfo::ic_total_count() { 6567 int TypeFeedbackInfo::ic_total_count() {
6568 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value(); 6568 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value();
6569 return ICTotalCountField::decode(current); 6569 return ICTotalCountField::decode(current);
6570 } 6570 }
6571 6571
6572 6572
6573 void TypeFeedbackInfo::set_ic_total_count(int count) { 6573 void TypeFeedbackInfo::set_ic_total_count(int count) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
6750 #undef READ_UINT32_FIELD 6750 #undef READ_UINT32_FIELD
6751 #undef WRITE_UINT32_FIELD 6751 #undef WRITE_UINT32_FIELD
6752 #undef READ_SHORT_FIELD 6752 #undef READ_SHORT_FIELD
6753 #undef WRITE_SHORT_FIELD 6753 #undef WRITE_SHORT_FIELD
6754 #undef READ_BYTE_FIELD 6754 #undef READ_BYTE_FIELD
6755 #undef WRITE_BYTE_FIELD 6755 #undef WRITE_BYTE_FIELD
6756 6756
6757 } } // namespace v8::internal 6757 } } // namespace v8::internal
6758 6758
6759 #endif // V8_OBJECTS_INL_H_ 6759 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698