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

Unified Diff: src/hydrogen.h

Issue 17229005: Convert UnaryOpStub to a HydrogenCodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: add some duckt tape for now to fix non-sse 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 side-by-side diff with in-line comments
Download patch
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index 6a49e5708de953eb5cb74e88906afe9526c18b79..09de792065ff4c1cda98e184750df9771108fed7 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -1015,6 +1015,9 @@ class HGraphBuilder {
HValue* BuildCheckNonSmi(HValue* object);
HValue* BuildCheckMap(HValue* obj, Handle<Map> map);
+ static Representation ToRepresentation(TypeInfo info);
+ static Representation ToRepresentation(Handle<Type> type);
danno 2013/06/27 13:31:06 Shouldn't this method be on the Type class?
oliv 2013/06/27 17:20:48 I only pulled this method up from the OptimizedGra
+
// Building common constructs
HInstruction* BuildExternalArrayElementAccess(
HValue* external_elements,
@@ -1078,6 +1081,8 @@ class HGraphBuilder {
HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL);
+ void AddSoftDeoptimize();
+
class IfBuilder {
public:
explicit IfBuilder(HGraphBuilder* builder,
@@ -1360,6 +1365,9 @@ class HGraphBuilder {
ElementsKind kind,
int length);
+ HInstruction* BuildSub(HValue* value, Handle<Type> type, HValue* context);
+ HInstruction* BuildBitNot(HValue* value, Handle<Type> type);
+
void BuildCompareNil(
HValue* value,
Handle<Type> type,
@@ -1447,8 +1455,6 @@ class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor {
bool inline_bailout() { return inline_bailout_; }
- void AddSoftDeoptimize();
-
void Bailout(const char* reason);
HBasicBlock* CreateJoin(HBasicBlock* first,
@@ -1632,9 +1638,6 @@ class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor {
// to push them as outgoing parameters.
template <class Instruction> HInstruction* PreProcessCall(Instruction* call);
- static Representation ToRepresentation(TypeInfo info);
- static Representation ToRepresentation(Handle<Type> type);
-
void SetUpScope(Scope* scope);
virtual void VisitStatements(ZoneList<Statement*>* statements);

Powered by Google App Engine
This is Rietveld 408576698