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

Side by Side Diff: src/hydrogen.h

Issue 55933002: Inline array constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Even better codegen for 1 arg case, and refactoring. Created 7 years, 1 month 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/heap.cc ('k') | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')
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 2044 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 BailoutId ast_id); 2055 BailoutId ast_id);
2056 2056
2057 void HandlePropertyAssignment(Assignment* expr); 2057 void HandlePropertyAssignment(Assignment* expr);
2058 void HandleCompoundAssignment(Assignment* expr); 2058 void HandleCompoundAssignment(Assignment* expr);
2059 void HandlePolymorphicLoadNamedField(BailoutId ast_id, 2059 void HandlePolymorphicLoadNamedField(BailoutId ast_id,
2060 BailoutId return_id, 2060 BailoutId return_id,
2061 HValue* object, 2061 HValue* object,
2062 SmallMapList* types, 2062 SmallMapList* types,
2063 Handle<String> name); 2063 Handle<String> name);
2064 2064
2065 bool IsCallNewArrayInlineable(CallNew* expr);
2066 void BuildInlinedCallNewArray(CallNew* expr);
2067 HValue* BuildInlinedCallNewArray_OneArg(CallNew* expr,
2068 HValue* constructor,
2069 HInstruction* cell_instruction);
2070
2065 class PropertyAccessInfo { 2071 class PropertyAccessInfo {
2066 public: 2072 public:
2067 PropertyAccessInfo(Isolate* isolate, Handle<Map> map, Handle<String> name) 2073 PropertyAccessInfo(Isolate* isolate, Handle<Map> map, Handle<String> name)
2068 : lookup_(isolate), 2074 : lookup_(isolate),
2069 map_(map), 2075 map_(map),
2070 name_(name), 2076 name_(name),
2071 access_(HObjectAccess::ForMap()) { } 2077 access_(HObjectAccess::ForMap()) { }
2072 2078
2073 // Checkes whether this PropertyAccessInfo can be handled as a monomorphic 2079 // Checkes whether this PropertyAccessInfo can be handled as a monomorphic
2074 // load named. It additionally fills in the fields necessary to generate the 2080 // load named. It additionally fills in the fields necessary to generate the
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
2483 } 2489 }
2484 2490
2485 private: 2491 private:
2486 HGraphBuilder* builder_; 2492 HGraphBuilder* builder_;
2487 }; 2493 };
2488 2494
2489 2495
2490 } } // namespace v8::internal 2496 } } // namespace v8::internal
2491 2497
2492 #endif // V8_HYDROGEN_H_ 2498 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698