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

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: Rebased 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
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 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 HValue* capacity); 1343 HValue* capacity);
1344 1344
1345 HValue* BuildCloneShallowArray(HContext* context, 1345 HValue* BuildCloneShallowArray(HContext* context,
1346 HValue* boilerplate, 1346 HValue* boilerplate,
1347 AllocationSiteMode mode, 1347 AllocationSiteMode mode,
1348 ElementsKind kind, 1348 ElementsKind kind,
1349 int length); 1349 int length);
1350 1350
1351 void BuildCompareNil( 1351 void BuildCompareNil(
1352 HValue* value, 1352 HValue* value,
1353 CompareNilICStub::Types types, 1353 Handle<Type> type,
1354 Handle<Map> map,
1355 int position, 1354 int position,
1356 HIfContinuation* continuation); 1355 HIfContinuation* continuation);
1357 1356
1358 HValue* BuildCreateAllocationSiteInfo(HValue* previous_object, 1357 HValue* BuildCreateAllocationSiteInfo(HValue* previous_object,
1359 int previous_object_size, 1358 int previous_object_size,
1360 HValue* payload); 1359 HValue* payload);
1361 1360
1362 HInstruction* BuildGetNativeContext(HValue* context); 1361 HInstruction* BuildGetNativeContext(HValue* context);
1363 HInstruction* BuildGetArrayFunction(HValue* context); 1362 HInstruction* BuildGetArrayFunction(HValue* context);
1364 1363
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 1614
1616 void AddPhi(HPhi* phi); 1615 void AddPhi(HPhi* phi);
1617 1616
1618 void PushAndAdd(HInstruction* instr); 1617 void PushAndAdd(HInstruction* instr);
1619 1618
1620 // Remove the arguments from the bailout environment and emit instructions 1619 // Remove the arguments from the bailout environment and emit instructions
1621 // to push them as outgoing parameters. 1620 // to push them as outgoing parameters.
1622 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); 1621 template <class Instruction> HInstruction* PreProcessCall(Instruction* call);
1623 1622
1624 static Representation ToRepresentation(TypeInfo info); 1623 static Representation ToRepresentation(TypeInfo info);
1624 static Representation ToRepresentation(Handle<Type> type);
1625 1625
1626 void SetUpScope(Scope* scope); 1626 void SetUpScope(Scope* scope);
1627 virtual void VisitStatements(ZoneList<Statement*>* statements); 1627 virtual void VisitStatements(ZoneList<Statement*>* statements);
1628 1628
1629 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 1629 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
1630 AST_NODE_LIST(DECLARE_VISIT) 1630 AST_NODE_LIST(DECLARE_VISIT)
1631 #undef DECLARE_VISIT 1631 #undef DECLARE_VISIT
1632 1632
1633 // Helpers for flow graph construction. 1633 // Helpers for flow graph construction.
1634 enum GlobalPropertyAccess { 1634 enum GlobalPropertyAccess {
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
2020 EmbeddedVector<char, 64> filename_; 2020 EmbeddedVector<char, 64> filename_;
2021 HeapStringAllocator string_allocator_; 2021 HeapStringAllocator string_allocator_;
2022 StringStream trace_; 2022 StringStream trace_;
2023 int indent_; 2023 int indent_;
2024 }; 2024 };
2025 2025
2026 2026
2027 } } // namespace v8::internal 2027 } } // namespace v8::internal
2028 2028
2029 #endif // V8_HYDROGEN_H_ 2029 #endif // V8_HYDROGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698