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

Side by Side Diff: src/hydrogen.h

Issue 16361015: Migrate Compare ICs to new type rep (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments Created 7 years, 6 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/compiler.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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 HValue* capacity); 1357 HValue* capacity);
1358 1358
1359 HValue* BuildCloneShallowArray(HContext* context, 1359 HValue* BuildCloneShallowArray(HContext* context,
1360 HValue* boilerplate, 1360 HValue* boilerplate,
1361 AllocationSiteMode mode, 1361 AllocationSiteMode mode,
1362 ElementsKind kind, 1362 ElementsKind kind,
1363 int length); 1363 int length);
1364 1364
1365 void BuildCompareNil( 1365 void BuildCompareNil(
1366 HValue* value, 1366 HValue* value,
1367 CompareNilICStub::Types types, 1367 Handle<Type> type,
1368 Handle<Map> map,
1369 int position, 1368 int position,
1370 HIfContinuation* continuation); 1369 HIfContinuation* continuation);
1371 1370
1372 HValue* BuildCreateAllocationSiteInfo(HValue* previous_object, 1371 HValue* BuildCreateAllocationSiteInfo(HValue* previous_object,
1373 int previous_object_size, 1372 int previous_object_size,
1374 HValue* payload); 1373 HValue* payload);
1375 1374
1376 HInstruction* BuildGetNativeContext(HValue* context); 1375 HInstruction* BuildGetNativeContext(HValue* context);
1377 HInstruction* BuildGetArrayFunction(HValue* context); 1376 HInstruction* BuildGetArrayFunction(HValue* context);
1378 1377
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 1628
1630 void AddPhi(HPhi* phi); 1629 void AddPhi(HPhi* phi);
1631 1630
1632 void PushAndAdd(HInstruction* instr); 1631 void PushAndAdd(HInstruction* instr);
1633 1632
1634 // Remove the arguments from the bailout environment and emit instructions 1633 // Remove the arguments from the bailout environment and emit instructions
1635 // to push them as outgoing parameters. 1634 // to push them as outgoing parameters.
1636 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); 1635 template <class Instruction> HInstruction* PreProcessCall(Instruction* call);
1637 1636
1638 static Representation ToRepresentation(TypeInfo info); 1637 static Representation ToRepresentation(TypeInfo info);
1638 static Representation ToRepresentation(Handle<Type> type);
1639 1639
1640 void SetUpScope(Scope* scope); 1640 void SetUpScope(Scope* scope);
1641 virtual void VisitStatements(ZoneList<Statement*>* statements); 1641 virtual void VisitStatements(ZoneList<Statement*>* statements);
1642 1642
1643 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 1643 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
1644 AST_NODE_LIST(DECLARE_VISIT) 1644 AST_NODE_LIST(DECLARE_VISIT)
1645 #undef DECLARE_VISIT 1645 #undef DECLARE_VISIT
1646 1646
1647 // Helpers for flow graph construction. 1647 // Helpers for flow graph construction.
1648 enum GlobalPropertyAccess { 1648 enum GlobalPropertyAccess {
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
2034 EmbeddedVector<char, 64> filename_; 2034 EmbeddedVector<char, 64> filename_;
2035 HeapStringAllocator string_allocator_; 2035 HeapStringAllocator string_allocator_;
2036 StringStream trace_; 2036 StringStream trace_;
2037 int indent_; 2037 int indent_;
2038 }; 2038 };
2039 2039
2040 2040
2041 } } // namespace v8::internal 2041 } } // namespace v8::internal
2042 2042
2043 #endif // V8_HYDROGEN_H_ 2043 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698