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

Side by Side Diff: test/unittests/interpreter/bytecode-array-builder-unittest.cc

Issue 1472323002: [es6] Correct parsing of regular expression literal flags. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix oversight in interpreter 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 | « test/mjsunit/messages.js ('k') | test/webkit/fast/regex/toString-expected.txt » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/interpreter/bytecode-array-builder.h" 7 #include "src/interpreter/bytecode-array-builder.h"
8 #include "src/interpreter/bytecode-array-iterator.h" 8 #include "src/interpreter/bytecode-array-iterator.h"
9 #include "test/unittests/test-utils.h" 9 #include "test/unittests/test-utils.h"
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT); 94 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT);
95 95
96 // Emit closure operations. 96 // Emit closure operations.
97 builder.CreateClosure(NOT_TENURED); 97 builder.CreateClosure(NOT_TENURED);
98 98
99 // Emit argument creation operations. 99 // Emit argument creation operations.
100 builder.CreateArguments(CreateArgumentsType::kMappedArguments) 100 builder.CreateArguments(CreateArgumentsType::kMappedArguments)
101 .CreateArguments(CreateArgumentsType::kUnmappedArguments); 101 .CreateArguments(CreateArgumentsType::kUnmappedArguments);
102 102
103 // Emit literal creation operations 103 // Emit literal creation operations
104 builder.CreateRegExpLiteral(0, reg) 104 builder.CreateRegExpLiteral(0, 0)
105 .CreateArrayLiteral(0, 0) 105 .CreateArrayLiteral(0, 0)
106 .CreateObjectLiteral(0, 0); 106 .CreateObjectLiteral(0, 0);
107 107
108 // Call operations. 108 // Call operations.
109 builder.Call(reg, reg, 0, 0) 109 builder.Call(reg, reg, 0, 0)
110 .Call(reg, reg, 0, 1024) 110 .Call(reg, reg, 0, 1024)
111 .CallRuntime(Runtime::kIsArray, reg, 1) 111 .CallRuntime(Runtime::kIsArray, reg, 1)
112 .CallJSRuntime(Context::SPREAD_ITERABLE_INDEX, reg, 1); 112 .CallJSRuntime(Context::SPREAD_ITERABLE_INDEX, reg, 1);
113 113
114 // Emit binary operator invocations. 114 // Emit binary operator invocations.
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 706
707 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); 707 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn);
708 iterator.Advance(); 708 iterator.Advance();
709 CHECK(iterator.done()); 709 CHECK(iterator.done());
710 } 710 }
711 711
712 712
713 } // namespace interpreter 713 } // namespace interpreter
714 } // namespace internal 714 } // namespace internal
715 } // namespace v8 715 } // namespace v8
OLDNEW
« no previous file with comments | « test/mjsunit/messages.js ('k') | test/webkit/fast/regex/toString-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698