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

Side by Side Diff: src/asmjs/asm-typer.h

Issue 2648353010: [wasm][asm.js] Permit ternary operator in asm.js returns in some cases. (Closed)
Patch Set: fix Created 3 years, 11 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 | « no previous file | src/asmjs/asm-typer.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 SRC_ASMJS_ASM_TYPER_H_ 5 #ifndef SRC_ASMJS_ASM_TYPER_H_
6 #define SRC_ASMJS_ASM_TYPER_H_ 6 #define SRC_ASMJS_ASM_TYPER_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <string> 9 #include <string>
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 enum HeapAccessType { LoadFromHeap, StoreToHeap }; 357 enum HeapAccessType { LoadFromHeap, StoreToHeap };
358 AsmType* ValidateHeapAccess(Property* heap, HeapAccessType access_type); 358 AsmType* ValidateHeapAccess(Property* heap, HeapAccessType access_type);
359 // 6.11 ValidateFloatCoercion 359 // 6.11 ValidateFloatCoercion
360 bool IsCallToFround(Call* call); 360 bool IsCallToFround(Call* call);
361 AsmType* ValidateFloatCoercion(Call* call); 361 AsmType* ValidateFloatCoercion(Call* call);
362 362
363 // 5.1 ParameterTypeAnnotations 363 // 5.1 ParameterTypeAnnotations
364 AsmType* ParameterTypeAnnotations(Variable* parameter, 364 AsmType* ParameterTypeAnnotations(Variable* parameter,
365 Expression* annotation); 365 Expression* annotation);
366 // 5.2 ReturnTypeAnnotations 366 // 5.2 ReturnTypeAnnotations
367 AsmType* ReturnTypeAnnotations(ReturnStatement* statement); 367 AsmType* ReturnTypeAnnotations(Expression* ret_expr);
368 // 5.4 VariableTypeAnnotations 368 // 5.4 VariableTypeAnnotations
369 // 5.5 GlobalVariableTypeAnnotations 369 // 5.5 GlobalVariableTypeAnnotations
370 AsmType* VariableTypeAnnotations( 370 AsmType* VariableTypeAnnotations(
371 Expression* initializer, 371 Expression* initializer,
372 VariableInfo::Mutability global = VariableInfo::kLocal); 372 VariableInfo::Mutability global = VariableInfo::kLocal);
373 AsmType* ImportExpression(Property* import); 373 AsmType* ImportExpression(Property* import);
374 AsmType* NewHeapView(CallNew* new_heap_view); 374 AsmType* NewHeapView(CallNew* new_heap_view);
375 375
376 Isolate* isolate_; 376 Isolate* isolate_;
377 Zone* zone_; 377 Zone* zone_;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 ZoneVector<Assignment*> function_pointer_tables_; 411 ZoneVector<Assignment*> function_pointer_tables_;
412 412
413 DISALLOW_IMPLICIT_CONSTRUCTORS(AsmTyper); 413 DISALLOW_IMPLICIT_CONSTRUCTORS(AsmTyper);
414 }; 414 };
415 415
416 } // namespace wasm 416 } // namespace wasm
417 } // namespace internal 417 } // namespace internal
418 } // namespace v8 418 } // namespace v8
419 419
420 #endif // SRC_ASMJS_ASM_TYPER_H_ 420 #endif // SRC_ASMJS_ASM_TYPER_H_
OLDNEW
« no previous file with comments | « no previous file | src/asmjs/asm-typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698