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

Side by Side Diff: src/full-codegen.h

Issue 19248002: Fix unaligned accesses in back_edge tables. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Fixed nit. Created 7 years, 5 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/deoptimizer.cc ('k') | src/full-codegen.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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 #elif V8_TARGET_ARCH_X64 129 #elif V8_TARGET_ARCH_X64
130 static const int kCodeSizeMultiplier = 162; 130 static const int kCodeSizeMultiplier = 162;
131 #elif V8_TARGET_ARCH_ARM 131 #elif V8_TARGET_ARCH_ARM
132 static const int kCodeSizeMultiplier = 142; 132 static const int kCodeSizeMultiplier = 142;
133 #elif V8_TARGET_ARCH_MIPS 133 #elif V8_TARGET_ARCH_MIPS
134 static const int kCodeSizeMultiplier = 142; 134 static const int kCodeSizeMultiplier = 142;
135 #else 135 #else
136 #error Unsupported target architecture. 136 #error Unsupported target architecture.
137 #endif 137 #endif
138 138
139 static const int kBackEdgeEntrySize = 2 * kIntSize + kOneByteSize; 139 static const int kBackEdgeEntrySize = 3 * kIntSize;
140 140
141 private: 141 private:
142 class Breakable; 142 class Breakable;
143 class Iteration; 143 class Iteration;
144 144
145 class TestContext; 145 class TestContext;
146 146
147 class NestedStatement BASE_EMBEDDED { 147 class NestedStatement BASE_EMBEDDED {
148 public: 148 public:
149 explicit NestedStatement(FullCodeGenerator* codegen) : codegen_(codegen) { 149 explicit NestedStatement(FullCodeGenerator* codegen) : codegen_(codegen) {
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 Handle<FixedArray> handler_table() { return handler_table_; } 641 Handle<FixedArray> handler_table() { return handler_table_; }
642 642
643 struct BailoutEntry { 643 struct BailoutEntry {
644 BailoutId id; 644 BailoutId id;
645 unsigned pc_and_state; 645 unsigned pc_and_state;
646 }; 646 };
647 647
648 struct BackEdgeEntry { 648 struct BackEdgeEntry {
649 BailoutId id; 649 BailoutId id;
650 unsigned pc; 650 unsigned pc;
651 uint8_t loop_depth; 651 uint32_t loop_depth;
652 }; 652 };
653 653
654 struct TypeFeedbackCellEntry { 654 struct TypeFeedbackCellEntry {
655 TypeFeedbackId ast_id; 655 TypeFeedbackId ast_id;
656 Handle<Cell> cell; 656 Handle<Cell> cell;
657 }; 657 };
658 658
659 659
660 class ExpressionContext BASE_EMBEDDED { 660 class ExpressionContext BASE_EMBEDDED {
661 public: 661 public:
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 } 878 }
879 879
880 private: 880 private:
881 Zone* zone_; 881 Zone* zone_;
882 }; 882 };
883 883
884 884
885 } } // namespace v8::internal 885 } } // namespace v8::internal
886 886
887 #endif // V8_FULL_CODEGEN_H_ 887 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698