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

Side by Side Diff: test/cctest/interpreter/test-bytecode-generator.cc

Issue 1531273002: [Interpreter] Allocates new temporary register outside the reservation for consecutive registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixing mjsunit.status again. one test is failing on bots. Created 5 years 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/interpreter/bytecode-generator.cc ('k') | test/cctest/interpreter/test-interpreter.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/interpreter/bytecode-array-iterator.h" 8 #include "src/interpreter/bytecode-array-iterator.h"
9 #include "src/interpreter/bytecode-generator.h" 9 #include "src/interpreter/bytecode-generator.h"
10 #include "src/interpreter/interpreter.h" 10 #include "src/interpreter/interpreter.h"
(...skipping 5565 matching lines...) Expand 10 before | Expand all | Expand 10 after
5576 B(LdaSmi8), U8(2), // 5576 B(LdaSmi8), U8(2), //
5577 B(Star), R(1), // 5577 B(Star), R(1), //
5578 B(Mul), R(4), // 5578 B(Mul), R(4), //
5579 B(Add), R(3), // 5579 B(Add), R(3), //
5580 B(Star), R(4), // 5580 B(Star), R(4), //
5581 B(LdaSmi8), U8(3), // 5581 B(LdaSmi8), U8(3), //
5582 B(Star), R(1), // 5582 B(Star), R(1), //
5583 B(Add), R(4), // 5583 B(Add), R(4), //
5584 B(Star), R(3), // 5584 B(Star), R(3), //
5585 B(LdaSmi8), U8(4), // 5585 B(LdaSmi8), U8(4), //
5586 B(Star), R(5), //
5587 B(Add), R(3), //
5586 B(Star), R(4), // 5588 B(Star), R(4), //
5587 B(Add), R(3), //
5588 B(Star), R(5), //
5589 B(LdaSmi8), U8(5), // 5589 B(LdaSmi8), U8(5), //
5590 B(Star), R(1), // 5590 B(Star), R(1), //
5591 B(Add), R(5), // 5591 B(Add), R(4), //
5592 B(Star), R(3), // 5592 B(Star), R(3), //
5593 B(Ldar), R(1), // 5593 B(Ldar), R(1), //
5594 B(Add), R(3), // 5594 B(Add), R(3), //
5595 B(Mov), R(4), R(0), // 5595 B(Mov), R(5), R(0), //
5596 B(Return), // 5596 B(Return), //
5597 }, 5597 },
5598 0}, 5598 0},
5599 {"var x = 17;\n" 5599 {"var x = 17;\n"
5600 "return 1 + x + (x++) + (++x);\n", 5600 "return 1 + x + (x++) + (++x);\n",
5601 5 * kPointerSize, 5601 5 * kPointerSize,
5602 1, 5602 1,
5603 40, 5603 40,
5604 { 5604 {
5605 B(LdaSmi8), U8(17), // 5605 B(LdaSmi8), U8(17), //
(...skipping 24 matching lines...) Expand all
5630 for (size_t i = 0; i < arraysize(snippets); i++) { 5630 for (size_t i = 0; i < arraysize(snippets); i++) {
5631 Handle<BytecodeArray> bytecode_array = 5631 Handle<BytecodeArray> bytecode_array =
5632 helper.MakeBytecodeForFunctionBody(snippets[i].code_snippet); 5632 helper.MakeBytecodeForFunctionBody(snippets[i].code_snippet);
5633 CheckBytecodeArrayEqual(snippets[i], bytecode_array); 5633 CheckBytecodeArrayEqual(snippets[i], bytecode_array);
5634 } 5634 }
5635 } 5635 }
5636 5636
5637 } // namespace interpreter 5637 } // namespace interpreter
5638 } // namespace internal 5638 } // namespace internal
5639 } // namespace v8 5639 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | test/cctest/interpreter/test-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698