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

Side by Side Diff: src/objects.h

Issue 671843003: Small fixes for the code serializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased and addressed nit Created 6 years, 2 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 | « no previous file | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after
3439 // Looks up a string that is equal to the given string and returns 3439 // Looks up a string that is equal to the given string and returns
3440 // string handle if it is found, or an empty handle otherwise. 3440 // string handle if it is found, or an empty handle otherwise.
3441 MUST_USE_RESULT static MaybeHandle<String> LookupStringIfExists( 3441 MUST_USE_RESULT static MaybeHandle<String> LookupStringIfExists(
3442 Isolate* isolate, 3442 Isolate* isolate,
3443 Handle<String> str); 3443 Handle<String> str);
3444 MUST_USE_RESULT static MaybeHandle<String> LookupTwoCharsStringIfExists( 3444 MUST_USE_RESULT static MaybeHandle<String> LookupTwoCharsStringIfExists(
3445 Isolate* isolate, 3445 Isolate* isolate,
3446 uint16_t c1, 3446 uint16_t c1,
3447 uint16_t c2); 3447 uint16_t c2);
3448 3448
3449 static void EnsureCapacityForDeserialization(Isolate* isolate, int expected);
3450
3449 DECLARE_CAST(StringTable) 3451 DECLARE_CAST(StringTable)
3450 3452
3451 private: 3453 private:
3452 template <bool seq_one_byte> 3454 template <bool seq_one_byte>
3453 friend class JsonParser; 3455 friend class JsonParser;
3454 3456
3455 DISALLOW_IMPLICIT_CONSTRUCTORS(StringTable); 3457 DISALLOW_IMPLICIT_CONSTRUCTORS(StringTable);
3456 }; 3458 };
3457 3459
3458 3460
(...skipping 7437 matching lines...) Expand 10 before | Expand all | Expand 10 after
10896 } else { 10898 } else {
10897 value &= ~(1 << bit_position); 10899 value &= ~(1 << bit_position);
10898 } 10900 }
10899 return value; 10901 return value;
10900 } 10902 }
10901 }; 10903 };
10902 10904
10903 } } // namespace v8::internal 10905 } } // namespace v8::internal
10904 10906
10905 #endif // V8_OBJECTS_H_ 10907 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698