Chromium Code Reviews| Index: src/typing-asm.h |
| diff --git a/src/typing-asm.h b/src/typing-asm.h |
| index db624b32d645c33d71e6ce690c3f5761cfb4ded6..d35ee86fc3d2dc73f49f6ae6f28450cf37935f92 100644 |
| --- a/src/typing-asm.h |
| +++ b/src/typing-asm.h |
| @@ -25,6 +25,41 @@ class AsmTyper : public AstVisitor { |
| void set_allow_simd(bool simd); |
| const char* error_message() { return error_message_; } |
| + enum StandardObject { |
|
titzer
2015/12/08 10:27:20
Better name here? Many of these things are functio
bradn
2015/12/09 03:40:09
Done.
|
| + kNone = 0, |
| + kStdlib, |
| + kInfinity, |
| + kNaN, |
| + kMathAcos, |
| + kMathAsin, |
| + kMathAtan, |
| + kMathCos, |
| + kMathSin, |
| + kMathTan, |
| + kMathExp, |
| + kMathLog, |
| + kMathCeil, |
| + kMathFloor, |
| + kMathSqrt, |
| + kMathAbs, |
| + kMathMin, |
| + kMathMax, |
| + kMathAtan2, |
| + kMathPow, |
| + kMathImul, |
| + kMathFround, |
| + kMathE, |
| + kMathLN10, |
| + kMathLN2, |
| + kMathLOG2E, |
| + kMathLOG10E, |
| + kMathPI, |
| + kMathSQRT1_2, |
| + kMathSQRT2, |
| + }; |
| + |
| + StandardObject VariableAsStandardObject(Variable* variable); |
| + |
| DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| private: |
| @@ -37,15 +72,15 @@ class AsmTyper : public AstVisitor { |
| struct VariableInfo : public ZoneObject { |
| Type* type; |
| - bool is_stdlib_object; |
| bool is_check_function; |
| bool is_constructor_function; |
| + StandardObject standard_object; |
| VariableInfo() |
| : type(NULL), |
| - is_stdlib_object(false), |
| is_check_function(false), |
| - is_constructor_function(false) {} |
| + is_constructor_function(false), |
| + standard_object(kNone) {} |
| explicit VariableInfo(Type* t) |
| : type(t), is_check_function(false), is_constructor_function(false) {} |
| }; |