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