OLD | NEW |
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 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 int position() const { return position_; } | 1249 int position() const { return position_; } |
1250 | 1250 |
1251 protected: | 1251 protected: |
1252 virtual bool BuildGraph() = 0; | 1252 virtual bool BuildGraph() = 0; |
1253 | 1253 |
1254 HBasicBlock* CreateBasicBlock(HEnvironment* env); | 1254 HBasicBlock* CreateBasicBlock(HEnvironment* env); |
1255 HBasicBlock* CreateLoopHeaderBlock(); | 1255 HBasicBlock* CreateLoopHeaderBlock(); |
1256 | 1256 |
1257 HValue* BuildCheckHeapObject(HValue* object); | 1257 HValue* BuildCheckHeapObject(HValue* object); |
1258 HValue* BuildCheckMap(HValue* obj, Handle<Map> map); | 1258 HValue* BuildCheckMap(HValue* obj, Handle<Map> map); |
| 1259 HValue* BuildCheckString(HValue* object, const char* failure_reason); |
1259 HValue* BuildWrapReceiver(HValue* object, HValue* function); | 1260 HValue* BuildWrapReceiver(HValue* object, HValue* function); |
1260 | 1261 |
1261 // Building common constructs | 1262 // Building common constructs |
1262 HValue* BuildCheckForCapacityGrow(HValue* object, | 1263 HValue* BuildCheckForCapacityGrow(HValue* object, |
1263 HValue* elements, | 1264 HValue* elements, |
1264 ElementsKind kind, | 1265 ElementsKind kind, |
1265 HValue* length, | 1266 HValue* length, |
1266 HValue* key, | 1267 HValue* key, |
1267 bool is_js_array); | 1268 bool is_js_array); |
1268 | 1269 |
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2577 } | 2578 } |
2578 | 2579 |
2579 private: | 2580 private: |
2580 HGraphBuilder* builder_; | 2581 HGraphBuilder* builder_; |
2581 }; | 2582 }; |
2582 | 2583 |
2583 | 2584 |
2584 } } // namespace v8::internal | 2585 } } // namespace v8::internal |
2585 | 2586 |
2586 #endif // V8_HYDROGEN_H_ | 2587 #endif // V8_HYDROGEN_H_ |
OLD | NEW |