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

Side by Side Diff: src/objects.h

Issue 239113002: Handlifying clients of StringTable, step 1. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review notes Created 6 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/heap.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 9701 matching lines...) Expand 10 before | Expand all | Expand 10 after
9712 inline byte kind(); 9712 inline byte kind();
9713 inline void set_kind(byte kind); 9713 inline void set_kind(byte kind);
9714 9714
9715 // Casting. 9715 // Casting.
9716 static inline Oddball* cast(Object* obj); 9716 static inline Oddball* cast(Object* obj);
9717 9717
9718 // Dispatched behavior. 9718 // Dispatched behavior.
9719 DECLARE_VERIFIER(Oddball) 9719 DECLARE_VERIFIER(Oddball)
9720 9720
9721 // Initialize the fields. 9721 // Initialize the fields.
9722 MUST_USE_RESULT MaybeObject* Initialize(Heap* heap, 9722 static void Initialize(Isolate* isolate,
9723 const char* to_string, 9723 Handle<Oddball> oddball,
9724 Object* to_number, 9724 const char* to_string,
9725 byte kind); 9725 Handle<Object> to_number,
9726 byte kind);
9726 9727
9727 // Layout description. 9728 // Layout description.
9728 static const int kToStringOffset = HeapObject::kHeaderSize; 9729 static const int kToStringOffset = HeapObject::kHeaderSize;
9729 static const int kToNumberOffset = kToStringOffset + kPointerSize; 9730 static const int kToNumberOffset = kToStringOffset + kPointerSize;
9730 static const int kKindOffset = kToNumberOffset + kPointerSize; 9731 static const int kKindOffset = kToNumberOffset + kPointerSize;
9731 static const int kSize = kKindOffset + kPointerSize; 9732 static const int kSize = kKindOffset + kPointerSize;
9732 9733
9733 static const byte kFalse = 0; 9734 static const byte kFalse = 0;
9734 static const byte kTrue = 1; 9735 static const byte kTrue = 1;
9735 static const byte kNotBooleanMask = ~1; 9736 static const byte kNotBooleanMask = ~1;
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
11057 } else { 11058 } else {
11058 value &= ~(1 << bit_position); 11059 value &= ~(1 << bit_position);
11059 } 11060 }
11060 return value; 11061 return value;
11061 } 11062 }
11062 }; 11063 };
11063 11064
11064 } } // namespace v8::internal 11065 } } // namespace v8::internal
11065 11066
11066 #endif // V8_OBJECTS_H_ 11067 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698