| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 #include "isolate.h" | 35 #include "isolate.h" |
| 36 #include "compilation-cache.h" | 36 #include "compilation-cache.h" |
| 37 #include "execution.h" | 37 #include "execution.h" |
| 38 #include "snapshot.h" | 38 #include "snapshot.h" |
| 39 #include "platform.h" | 39 #include "platform.h" |
| 40 #include "utils.h" | 40 #include "utils.h" |
| 41 #include "cctest.h" | 41 #include "cctest.h" |
| 42 #include "parser.h" | 42 #include "parser.h" |
| 43 #include "unicode-inl.h" | 43 #include "unicode-inl.h" |
| 44 | 44 |
| 45 using ::v8::AccessorInfo; | |
| 46 using ::v8::Arguments; | |
| 47 using ::v8::Context; | 45 using ::v8::Context; |
| 48 using ::v8::Extension; | 46 using ::v8::Extension; |
| 49 using ::v8::Function; | 47 using ::v8::Function; |
| 50 using ::v8::FunctionTemplate; | 48 using ::v8::FunctionTemplate; |
| 51 using ::v8::Handle; | 49 using ::v8::Handle; |
| 52 using ::v8::HandleScope; | 50 using ::v8::HandleScope; |
| 53 using ::v8::Local; | 51 using ::v8::Local; |
| 54 using ::v8::Message; | 52 using ::v8::Message; |
| 55 using ::v8::MessageCallback; | 53 using ::v8::MessageCallback; |
| 56 using ::v8::Object; | 54 using ::v8::Object; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 TEST(lookup_slots) { | 134 TEST(lookup_slots) { |
| 137 v8::HandleScope scope; | 135 v8::HandleScope scope; |
| 138 LocalContext env; | 136 LocalContext env; |
| 139 Local<Value> result = CompileRun( | 137 Local<Value> result = CompileRun( |
| 140 "function f5(x) {" | 138 "function f5(x) {" |
| 141 " with ({}) return x;" | 139 " with ({}) return x;" |
| 142 "}" | 140 "}" |
| 143 "f5(5);"); | 141 "f5(5);"); |
| 144 ExpectInt32(5, result); | 142 ExpectInt32(5, result); |
| 145 } | 143 } |
| OLD | NEW |