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

Side by Side Diff: src/interpreter/bytecode-array-builder.h

Issue 1385623002: [Interpreter]: Add support for strict mode load / store ICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
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 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 LanguageMode language_mode); 69 LanguageMode language_mode);
70 70
71 // Call a JS function. The JSFunction or Callable to be called should be in 71 // Call a JS function. The JSFunction or Callable to be called should be in
72 // |callable|, the receiver should be in |receiver| and all subsequent 72 // |callable|, the receiver should be in |receiver| and all subsequent
73 // arguments should be in registers <receiver + 1> to 73 // arguments should be in registers <receiver + 1> to
74 // <receiver + 1 + arg_count>. 74 // <receiver + 1 + arg_count>.
75 BytecodeArrayBuilder& Call(Register callable, Register receiver, 75 BytecodeArrayBuilder& Call(Register callable, Register receiver,
76 size_t arg_count); 76 size_t arg_count);
77 77
78 // Operators (register == lhs, accumulator = rhs). 78 // Operators (register == lhs, accumulator = rhs).
79 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg); 79 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg,
80 LanguageMode language_mode);
80 81
81 // Tests. 82 // Tests.
82 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, 83 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg,
83 LanguageMode language_mode); 84 LanguageMode language_mode);
84 85
85 // Casts 86 // Casts
86 BytecodeArrayBuilder& CastAccumulatorToBoolean(); 87 BytecodeArrayBuilder& CastAccumulatorToBoolean();
87 88
88 // Flow Control. 89 // Flow Control.
89 BytecodeArrayBuilder& Bind(BytecodeLabel* label); 90 BytecodeArrayBuilder& Bind(BytecodeLabel* label);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 214
214 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); 215 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope);
215 }; 216 };
216 217
217 218
218 } // namespace interpreter 219 } // namespace interpreter
219 } // namespace internal 220 } // namespace internal
220 } // namespace v8 221 } // namespace v8
221 222
222 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 223 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698