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

Side by Side Diff: src/snapshot/deserializer.cc

Issue 1777593003: S390: Platform specific includes in common files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/simulator.h ('k') | src/utils.h » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/snapshot/deserializer.h" 5 #include "src/snapshot/deserializer.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 // code object. 577 // code object.
578 SINGLE_CASE(kNewObject, kPlain, kInnerPointer, CODE_SPACE) 578 SINGLE_CASE(kNewObject, kPlain, kInnerPointer, CODE_SPACE)
579 // Deserialize a new code object and write a pointer to its first 579 // Deserialize a new code object and write a pointer to its first
580 // instruction to the current code object. 580 // instruction to the current code object.
581 ALL_SPACES(kNewObject, kFromCode, kInnerPointer) 581 ALL_SPACES(kNewObject, kFromCode, kInnerPointer)
582 // Find a recently deserialized object using its offset from the current 582 // Find a recently deserialized object using its offset from the current
583 // allocation point and write a pointer to it to the current object. 583 // allocation point and write a pointer to it to the current object.
584 ALL_SPACES(kBackref, kPlain, kStartOfObject) 584 ALL_SPACES(kBackref, kPlain, kStartOfObject)
585 ALL_SPACES(kBackrefWithSkip, kPlain, kStartOfObject) 585 ALL_SPACES(kBackrefWithSkip, kPlain, kStartOfObject)
586 #if defined(V8_TARGET_ARCH_MIPS) || defined(V8_TARGET_ARCH_MIPS64) || \ 586 #if defined(V8_TARGET_ARCH_MIPS) || defined(V8_TARGET_ARCH_MIPS64) || \
587 defined(V8_TARGET_ARCH_PPC) || V8_EMBEDDED_CONSTANT_POOL 587 defined(V8_TARGET_ARCH_PPC) || defined(V8_TARGET_ARCH_S390) || \
588 V8_EMBEDDED_CONSTANT_POOL
588 // Deserialize a new object from pointer found in code and write 589 // Deserialize a new object from pointer found in code and write
589 // a pointer to it to the current object. Required only for MIPS, PPC or 590 // a pointer to it to the current object. Required only for MIPS, PPC or
Yang 2016/03/09 10:43:18 Can you update the comment? Actually I would pref
590 // ARM with embedded constant pool, and omitted on the other architectures 591 // ARM with embedded constant pool, and omitted on the other architectures
591 // because it is fully unrolled and would cause bloat. 592 // because it is fully unrolled and would cause bloat.
592 ALL_SPACES(kNewObject, kFromCode, kStartOfObject) 593 ALL_SPACES(kNewObject, kFromCode, kStartOfObject)
593 // Find a recently deserialized code object using its offset from the 594 // Find a recently deserialized code object using its offset from the
594 // current allocation point and write a pointer to it to the current 595 // current allocation point and write a pointer to it to the current
595 // object. Required only for MIPS, PPC or ARM with embedded constant pool. 596 // object. Required only for MIPS, PPC or ARM with embedded constant pool.
596 ALL_SPACES(kBackref, kFromCode, kStartOfObject) 597 ALL_SPACES(kBackref, kFromCode, kStartOfObject)
597 ALL_SPACES(kBackrefWithSkip, kFromCode, kStartOfObject) 598 ALL_SPACES(kBackrefWithSkip, kFromCode, kStartOfObject)
598 #endif 599 #endif
599 // Find a recently deserialized code object using its offset from the 600 // Find a recently deserialized code object using its offset from the
600 // current allocation point and write a pointer to its first instruction 601 // current allocation point and write a pointer to its first instruction
601 // to the current code object or the instruction pointer in a function 602 // to the current code object or the instruction pointer in a function
602 // object. 603 // object.
603 ALL_SPACES(kBackref, kFromCode, kInnerPointer) 604 ALL_SPACES(kBackref, kFromCode, kInnerPointer)
604 ALL_SPACES(kBackrefWithSkip, kFromCode, kInnerPointer) 605 ALL_SPACES(kBackrefWithSkip, kFromCode, kInnerPointer)
605 ALL_SPACES(kBackref, kPlain, kInnerPointer) 606 ALL_SPACES(kBackref, kPlain, kInnerPointer)
606 ALL_SPACES(kBackrefWithSkip, kPlain, kInnerPointer) 607 ALL_SPACES(kBackrefWithSkip, kPlain, kInnerPointer)
607 // Find an object in the roots array and write a pointer to it to the 608 // Find an object in the roots array and write a pointer to it to the
608 // current object. 609 // current object.
609 SINGLE_CASE(kRootArray, kPlain, kStartOfObject, 0) 610 SINGLE_CASE(kRootArray, kPlain, kStartOfObject, 0)
610 #if defined(V8_TARGET_ARCH_MIPS) || defined(V8_TARGET_ARCH_MIPS64) || \ 611 #if defined(V8_TARGET_ARCH_MIPS) || defined(V8_TARGET_ARCH_MIPS64) || \
611 defined(V8_TARGET_ARCH_PPC) || V8_EMBEDDED_CONSTANT_POOL 612 defined(V8_TARGET_ARCH_PPC) || defined(V8_TARGET_ARCH_S390) || \
613 V8_EMBEDDED_CONSTANT_POOL
612 // Find an object in the roots array and write a pointer to it to in code. 614 // Find an object in the roots array and write a pointer to it to in code.
613 SINGLE_CASE(kRootArray, kFromCode, kStartOfObject, 0) 615 SINGLE_CASE(kRootArray, kFromCode, kStartOfObject, 0)
614 #endif 616 #endif
615 // Find an object in the partial snapshots cache and write a pointer to it 617 // Find an object in the partial snapshots cache and write a pointer to it
616 // to the current object. 618 // to the current object.
617 SINGLE_CASE(kPartialSnapshotCache, kPlain, kStartOfObject, 0) 619 SINGLE_CASE(kPartialSnapshotCache, kPlain, kStartOfObject, 0)
618 // Find an code entry in the partial snapshots cache and 620 // Find an code entry in the partial snapshots cache and
619 // write a pointer to it to the current object. 621 // write a pointer to it to the current object.
620 SINGLE_CASE(kPartialSnapshotCache, kPlain, kInnerPointer, 0) 622 SINGLE_CASE(kPartialSnapshotCache, kPlain, kInnerPointer, 0)
621 // Find an external reference and write a pointer to it to the current 623 // Find an external reference and write a pointer to it to the current
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 806
805 default: 807 default:
806 CHECK(false); 808 CHECK(false);
807 } 809 }
808 } 810 }
809 CHECK_EQ(limit, current); 811 CHECK_EQ(limit, current);
810 return true; 812 return true;
811 } 813 }
812 } // namespace internal 814 } // namespace internal
813 } // namespace v8 815 } // namespace v8
OLDNEW
« no previous file with comments | « src/simulator.h ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698