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

Side by Side Diff: src/serialize.h

Issue 587213002: Fix serializing ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: added TODO 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 | « src/code-stubs.h ('k') | src/serialize.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_SERIALIZE_H_ 5 #ifndef V8_SERIALIZE_H_
6 #define V8_SERIALIZE_H_ 6 #define V8_SERIALIZE_H_
7 7
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/hashmap.h" 9 #include "src/hashmap.h"
10 #include "src/heap-profiler.h" 10 #include "src/heap-profiler.h"
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 String* source() { 600 String* source() {
601 DCHECK(!AllowHeapAllocation::IsAllowed()); 601 DCHECK(!AllowHeapAllocation::IsAllowed());
602 return source_; 602 return source_;
603 } 603 }
604 604
605 List<uint32_t>* stub_keys() { return &stub_keys_; } 605 List<uint32_t>* stub_keys() { return &stub_keys_; }
606 606
607 private: 607 private:
608 void SerializeBuiltin(Code* builtin, HowToCode how_to_code, 608 void SerializeBuiltin(Code* builtin, HowToCode how_to_code,
609 WhereToPoint where_to_point, int skip); 609 WhereToPoint where_to_point, int skip);
610 void SerializeCodeStub(Code* code, HowToCode how_to_code, 610 void SerializeCodeStub(Code* stub, HowToCode how_to_code,
611 WhereToPoint where_to_point, int skip); 611 WhereToPoint where_to_point, int skip);
612 void SerializeSourceObject(HowToCode how_to_code, WhereToPoint where_to_point, 612 void SerializeSourceObject(HowToCode how_to_code, WhereToPoint where_to_point,
613 int skip); 613 int skip);
614 void SerializeHeapObject(HeapObject* heap_object, HowToCode how_to_code, 614 void SerializeHeapObject(HeapObject* heap_object, HowToCode how_to_code,
615 WhereToPoint where_to_point, int skip); 615 WhereToPoint where_to_point, int skip);
616 int AddCodeStubKey(uint32_t stub_key); 616 int AddCodeStubKey(uint32_t stub_key);
617 617
618 DisallowHeapAllocation no_gc_; 618 DisallowHeapAllocation no_gc_;
619 String* source_; 619 String* source_;
620 List<uint32_t> stub_keys_; 620 List<uint32_t> stub_keys_;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 // Following the header, we store, in sequential order 701 // Following the header, we store, in sequential order
702 // - code stub keys 702 // - code stub keys
703 // - serialization payload 703 // - serialization payload
704 704
705 ScriptData* script_data_; 705 ScriptData* script_data_;
706 bool owns_script_data_; 706 bool owns_script_data_;
707 }; 707 };
708 } } // namespace v8::internal 708 } } // namespace v8::internal
709 709
710 #endif // V8_SERIALIZE_H_ 710 #endif // V8_SERIALIZE_H_
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698