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 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2334 pending_deoptimization_ast_id_(AstNode::kNoNumber) { } | 2334 pending_deoptimization_ast_id_(AstNode::kNoNumber) { } |
2335 | 2335 |
2336 // Build the sequence for the graph. | 2336 // Build the sequence for the graph. |
2337 LChunk* Build(); | 2337 LChunk* Build(); |
2338 | 2338 |
2339 // Declare methods that deal with the individual node types. | 2339 // Declare methods that deal with the individual node types. |
2340 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); | 2340 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); |
2341 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 2341 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
2342 #undef DECLARE_DO | 2342 #undef DECLARE_DO |
2343 | 2343 |
2344 static bool SupportsMathFloorOfDiv() { return false; } | |
fschneider
2012/03/28 09:59:18
I'd add those function only when we add this optim
Alexandre
2012/03/28 16:27:38
Done.
| |
2345 static bool HasMagicNumberForDivisor(int32_t divisor) { return false; } | |
2346 static HValue* SimplifiedDividendForMathFloorOfDiv(HValue* val) { | |
2347 return NULL; | |
2348 } | |
2349 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val) { | |
2350 return NULL; | |
2351 } | |
2352 | |
2344 private: | 2353 private: |
2345 enum Status { | 2354 enum Status { |
2346 UNUSED, | 2355 UNUSED, |
2347 BUILDING, | 2356 BUILDING, |
2348 DONE, | 2357 DONE, |
2349 ABORTED | 2358 ABORTED |
2350 }; | 2359 }; |
2351 | 2360 |
2352 LChunk* chunk() const { return chunk_; } | 2361 LChunk* chunk() const { return chunk_; } |
2353 CompilationInfo* info() const { return info_; } | 2362 CompilationInfo* info() const { return info_; } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2474 | 2483 |
2475 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2484 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2476 }; | 2485 }; |
2477 | 2486 |
2478 #undef DECLARE_HYDROGEN_ACCESSOR | 2487 #undef DECLARE_HYDROGEN_ACCESSOR |
2479 #undef DECLARE_CONCRETE_INSTRUCTION | 2488 #undef DECLARE_CONCRETE_INSTRUCTION |
2480 | 2489 |
2481 } } // namespace v8::internal | 2490 } } // namespace v8::internal |
2482 | 2491 |
2483 #endif // V8_IA32_LITHIUM_IA32_H_ | 2492 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |