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

Side by Side Diff: src/hydrogen.h

Issue 16026023: Avoid Unnecessary Smi Checks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address review Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 void DecrementInNoSideEffectsScope() { 1005 void DecrementInNoSideEffectsScope() {
1006 no_side_effects_scope_count_--; 1006 no_side_effects_scope_count_--;
1007 } 1007 }
1008 1008
1009 protected: 1009 protected:
1010 virtual bool BuildGraph() = 0; 1010 virtual bool BuildGraph() = 0;
1011 1011
1012 HBasicBlock* CreateBasicBlock(HEnvironment* env); 1012 HBasicBlock* CreateBasicBlock(HEnvironment* env);
1013 HBasicBlock* CreateLoopHeaderBlock(); 1013 HBasicBlock* CreateLoopHeaderBlock();
1014 1014
1015 HValue* BuildCheckNonSmi(HValue* object); 1015 HValue* BuildCheckHeapObject(HValue* object);
1016 HValue* BuildCheckMap(HValue* obj, Handle<Map> map); 1016 HValue* BuildCheckMap(HValue* obj, Handle<Map> map);
1017 1017
1018 // Building common constructs 1018 // Building common constructs
1019 HInstruction* BuildExternalArrayElementAccess( 1019 HInstruction* BuildExternalArrayElementAccess(
1020 HValue* external_elements, 1020 HValue* external_elements,
1021 HValue* checked_key, 1021 HValue* checked_key,
1022 HValue* val, 1022 HValue* val,
1023 HValue* dependency, 1023 HValue* dependency,
1024 ElementsKind elements_kind, 1024 ElementsKind elements_kind,
1025 bool is_store); 1025 bool is_store);
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
2047 EmbeddedVector<char, 64> filename_; 2047 EmbeddedVector<char, 64> filename_;
2048 HeapStringAllocator string_allocator_; 2048 HeapStringAllocator string_allocator_;
2049 StringStream trace_; 2049 StringStream trace_;
2050 int indent_; 2050 int indent_;
2051 }; 2051 };
2052 2052
2053 2053
2054 } } // namespace v8::internal 2054 } } // namespace v8::internal
2055 2055
2056 #endif // V8_HYDROGEN_H_ 2056 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698