| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 F(SetProperty, -1 /* 4 or 5 */, 1) \ | 265 F(SetProperty, -1 /* 4 or 5 */, 1) \ |
| 266 F(DefineOrRedefineDataProperty, 4, 1) \ | 266 F(DefineOrRedefineDataProperty, 4, 1) \ |
| 267 F(DefineOrRedefineAccessorProperty, 5, 1) \ | 267 F(DefineOrRedefineAccessorProperty, 5, 1) \ |
| 268 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \ | 268 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \ |
| 269 \ | 269 \ |
| 270 /* Arrays */ \ | 270 /* Arrays */ \ |
| 271 F(RemoveArrayHoles, 2, 1) \ | 271 F(RemoveArrayHoles, 2, 1) \ |
| 272 F(GetArrayKeys, 2, 1) \ | 272 F(GetArrayKeys, 2, 1) \ |
| 273 F(MoveArrayContents, 2, 1) \ | 273 F(MoveArrayContents, 2, 1) \ |
| 274 F(EstimateNumberOfElements, 1, 1) \ | 274 F(EstimateNumberOfElements, 1, 1) \ |
| 275 F(SwapElements, 3, 1) \ | |
| 276 \ | 275 \ |
| 277 /* Getters and Setters */ \ | 276 /* Getters and Setters */ \ |
| 278 F(LookupAccessor, 3, 1) \ | 277 F(LookupAccessor, 3, 1) \ |
| 279 \ | 278 \ |
| 280 /* Literals */ \ | 279 /* Literals */ \ |
| 281 F(MaterializeRegExpLiteral, 4, 1)\ | 280 F(MaterializeRegExpLiteral, 4, 1)\ |
| 282 F(CreateObjectLiteral, 4, 1) \ | 281 F(CreateObjectLiteral, 4, 1) \ |
| 283 F(CreateObjectLiteralShallow, 4, 1) \ | 282 F(CreateObjectLiteralShallow, 4, 1) \ |
| 284 F(CreateArrayLiteral, 3, 1) \ | 283 F(CreateArrayLiteral, 3, 1) \ |
| 285 F(CreateArrayLiteralShallow, 3, 1) \ | 284 F(CreateArrayLiteralShallow, 3, 1) \ |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ | 528 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ |
| 530 F(ClassOf, 1, 1) \ | 529 F(ClassOf, 1, 1) \ |
| 531 F(StringCharCodeAt, 2, 1) \ | 530 F(StringCharCodeAt, 2, 1) \ |
| 532 F(Log, 3, 1) \ | 531 F(Log, 3, 1) \ |
| 533 F(StringAdd, 2, 1) \ | 532 F(StringAdd, 2, 1) \ |
| 534 F(SubString, 3, 1) \ | 533 F(SubString, 3, 1) \ |
| 535 F(StringCompare, 2, 1) \ | 534 F(StringCompare, 2, 1) \ |
| 536 F(RegExpExec, 4, 1) \ | 535 F(RegExpExec, 4, 1) \ |
| 537 F(RegExpConstructResult, 3, 1) \ | 536 F(RegExpConstructResult, 3, 1) \ |
| 538 F(GetFromCache, 2, 1) \ | 537 F(GetFromCache, 2, 1) \ |
| 539 F(NumberToString, 1, 1) \ | 538 F(NumberToString, 1, 1) |
| 540 F(SwapElements, 3, 1) | |
| 541 | 539 |
| 542 | 540 |
| 543 //--------------------------------------------------------------------------- | 541 //--------------------------------------------------------------------------- |
| 544 // Runtime provides access to all C++ runtime functions. | 542 // Runtime provides access to all C++ runtime functions. |
| 545 | 543 |
| 546 class RuntimeState { | 544 class RuntimeState { |
| 547 public: | 545 public: |
| 548 StaticResource<StringInputBuffer>* string_input_buffer() { | 546 StaticResource<StringInputBuffer>* string_input_buffer() { |
| 549 return &string_input_buffer_; | 547 return &string_input_buffer_; |
| 550 } | 548 } |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 //--------------------------------------------------------------------------- | 702 //--------------------------------------------------------------------------- |
| 705 // Constants used by interface to runtime functions. | 703 // Constants used by interface to runtime functions. |
| 706 | 704 |
| 707 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 705 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
| 708 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 706 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
| 709 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 707 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
| 710 | 708 |
| 711 } } // namespace v8::internal | 709 } } // namespace v8::internal |
| 712 | 710 |
| 713 #endif // V8_RUNTIME_H_ | 711 #endif // V8_RUNTIME_H_ |
| OLD | NEW |