| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 | 70 |
| 71 smi = handle(Smi::FromInt(666), isolate); | 71 smi = handle(Smi::FromInt(666), isolate); |
| 72 signed32 = isolate->factory()->NewHeapNumber(0x40000000); | 72 signed32 = isolate->factory()->NewHeapNumber(0x40000000); |
| 73 object1 = isolate->factory()->NewJSObjectFromMap(object_map); | 73 object1 = isolate->factory()->NewJSObjectFromMap(object_map); |
| 74 object2 = isolate->factory()->NewJSObjectFromMap(object_map); | 74 object2 = isolate->factory()->NewJSObjectFromMap(object_map); |
| 75 array = isolate->factory()->NewJSArray(20); | 75 array = isolate->factory()->NewJSArray(20); |
| 76 uninitialized = isolate->factory()->uninitialized_value(); | 76 uninitialized = isolate->factory()->uninitialized_value(); |
| 77 SmiConstant = Type::Constant(smi, region); | 77 SmiConstant = Type::Constant(smi, region); |
| 78 Signed32Constant = Type::Constant(signed32, region); | 78 Signed32Constant = Type::Constant(signed32, region); |
| 79 |
| 79 ObjectConstant1 = Type::Constant(object1, region); | 80 ObjectConstant1 = Type::Constant(object1, region); |
| 80 ObjectConstant2 = Type::Constant(object2, region); | 81 ObjectConstant2 = Type::Constant(object2, region); |
| 81 ArrayConstant = Type::Constant(array, region); | 82 ArrayConstant = Type::Constant(array, region); |
| 82 UninitializedConstant = Type::Constant(uninitialized, region); | 83 UninitializedConstant = Type::Constant(uninitialized, region); |
| 83 | 84 |
| 84 values.push_back(smi); | 85 values.push_back(smi); |
| 85 values.push_back(signed32); | 86 values.push_back(signed32); |
| 86 values.push_back(object1); | 87 values.push_back(object1); |
| 87 values.push_back(object2); | 88 values.push_back(object2); |
| 88 values.push_back(array); | 89 values.push_back(array); |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 321 |
| 321 private: | 322 private: |
| 322 Region* region_; | 323 Region* region_; |
| 323 v8::base::RandomNumberGenerator* rng_; | 324 v8::base::RandomNumberGenerator* rng_; |
| 324 }; | 325 }; |
| 325 | 326 |
| 326 | 327 |
| 327 } } // namespace v8::internal | 328 } } // namespace v8::internal |
| 328 | 329 |
| 329 #endif | 330 #endif |
| OLD | NEW |