| OLD | NEW |
| 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 // Required to get M_E etc. in MSVC. | 7 // Required to get M_E etc. in MSVC. |
| 8 #if defined(_WIN32) | 8 #if defined(_WIN32) |
| 9 #define _USE_MATH_DEFINES | 9 #define _USE_MATH_DEFINES |
| 10 #endif | 10 #endif |
| (...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 | 1255 |
| 1256 void VisitCallArgs(Call* expr) { | 1256 void VisitCallArgs(Call* expr) { |
| 1257 ZoneList<Expression*>* args = expr->arguments(); | 1257 ZoneList<Expression*>* args = expr->arguments(); |
| 1258 for (int i = 0; i < args->length(); ++i) { | 1258 for (int i = 0; i < args->length(); ++i) { |
| 1259 Expression* arg = args->at(i); | 1259 Expression* arg = args->at(i); |
| 1260 RECURSE(Visit(arg)); | 1260 RECURSE(Visit(arg)); |
| 1261 } | 1261 } |
| 1262 } | 1262 } |
| 1263 | 1263 |
| 1264 void VisitCall(Call* expr) { | 1264 void VisitCall(Call* expr) { |
| 1265 Call::CallType call_type = expr->GetCallType(isolate_); | 1265 Call::CallType call_type = expr->GetCallType(); |
| 1266 switch (call_type) { | 1266 switch (call_type) { |
| 1267 case Call::OTHER_CALL: { | 1267 case Call::OTHER_CALL: { |
| 1268 DCHECK_EQ(kFuncScope, scope_); | 1268 DCHECK_EQ(kFuncScope, scope_); |
| 1269 VariableProxy* proxy = expr->expression()->AsVariableProxy(); | 1269 VariableProxy* proxy = expr->expression()->AsVariableProxy(); |
| 1270 if (proxy != nullptr) { | 1270 if (proxy != nullptr) { |
| 1271 if (VisitStdlibFunction(expr, proxy)) { | 1271 if (VisitStdlibFunction(expr, proxy)) { |
| 1272 return; | 1272 return; |
| 1273 } | 1273 } |
| 1274 } | 1274 } |
| 1275 uint32_t index; | 1275 uint32_t index; |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1782 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_); | 1782 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_); |
| 1783 impl.Build(); | 1783 impl.Build(); |
| 1784 *foreign_args = impl.GetForeignArgs(); | 1784 *foreign_args = impl.GetForeignArgs(); |
| 1785 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_); | 1785 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_); |
| 1786 impl.builder_->WriteTo(*buffer); | 1786 impl.builder_->WriteTo(*buffer); |
| 1787 return buffer; | 1787 return buffer; |
| 1788 } | 1788 } |
| 1789 } // namespace wasm | 1789 } // namespace wasm |
| 1790 } // namespace internal | 1790 } // namespace internal |
| 1791 } // namespace v8 | 1791 } // namespace v8 |
| OLD | NEW |