OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 namespace v8 { | 36 namespace v8 { |
37 namespace internal { | 37 namespace internal { |
38 | 38 |
39 namespace { | 39 namespace { |
40 | 40 |
41 // Arguments object passed to C++ builtins. | 41 // Arguments object passed to C++ builtins. |
42 template <BuiltinExtraArguments extra_args> | 42 template <BuiltinExtraArguments extra_args> |
43 class BuiltinArguments : public Arguments { | 43 class BuiltinArguments : public Arguments { |
44 public: | 44 public: |
| 45 BuiltinArguments(int length, Object** arguments) |
| 46 : Arguments(length, arguments) { } |
| 47 |
45 Object*& operator[] (int index) { | 48 Object*& operator[] (int index) { |
46 ASSERT(index < length()); | 49 ASSERT(index < length()); |
47 return Arguments::operator[](index); | 50 return Arguments::operator[](index); |
48 } | 51 } |
49 | 52 |
50 template <class S> Handle<S> at(int index) { | 53 template <class S> Handle<S> at(int index) { |
51 ASSERT(index < length()); | 54 ASSERT(index < length()); |
52 return Arguments::at<S>(index); | 55 return Arguments::at<S>(index); |
53 } | 56 } |
54 | 57 |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 if (entry->contains(pc)) { | 908 if (entry->contains(pc)) { |
906 return names_[i]; | 909 return names_[i]; |
907 } | 910 } |
908 } | 911 } |
909 } | 912 } |
910 return NULL; | 913 return NULL; |
911 } | 914 } |
912 | 915 |
913 | 916 |
914 } } // namespace v8::internal | 917 } } // namespace v8::internal |
OLD | NEW |