| 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 16648 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 16659   CHECK_EQ(42, object.WrapperClassId()); | 16659   CHECK_EQ(42, object.WrapperClassId()); | 
| 16660 | 16660 | 
| 16661   Visitor42 visitor(object); | 16661   Visitor42 visitor(object); | 
| 16662   v8::V8::VisitHandlesWithClassIds(&visitor); | 16662   v8::V8::VisitHandlesWithClassIds(&visitor); | 
| 16663   CHECK_EQ(1, visitor.counter_); | 16663   CHECK_EQ(1, visitor.counter_); | 
| 16664 | 16664 | 
| 16665   object.Dispose(); | 16665   object.Dispose(); | 
| 16666 } | 16666 } | 
| 16667 | 16667 | 
| 16668 | 16668 | 
|  | 16669 TEST(WrapperClassId) { | 
|  | 16670   v8::HandleScope scope; | 
|  | 16671   LocalContext context; | 
|  | 16672   v8::Persistent<v8::Object> object = | 
|  | 16673       v8::Persistent<v8::Object>::New(v8::Object::New()); | 
|  | 16674   CHECK_EQ(0, object.WrapperClassId()); | 
|  | 16675   object.SetWrapperClassId(65535); | 
|  | 16676   CHECK_EQ(65535, object.WrapperClassId()); | 
|  | 16677   object.Dispose(); | 
|  | 16678 } | 
|  | 16679 | 
|  | 16680 | 
| 16669 TEST(RegExp) { | 16681 TEST(RegExp) { | 
| 16670   v8::HandleScope scope; | 16682   v8::HandleScope scope; | 
| 16671   LocalContext context; | 16683   LocalContext context; | 
| 16672 | 16684 | 
| 16673   v8::Handle<v8::RegExp> re = v8::RegExp::New(v8_str("foo"), v8::RegExp::kNone); | 16685   v8::Handle<v8::RegExp> re = v8::RegExp::New(v8_str("foo"), v8::RegExp::kNone); | 
| 16674   CHECK(re->IsRegExp()); | 16686   CHECK(re->IsRegExp()); | 
| 16675   CHECK(re->GetSource()->Equals(v8_str("foo"))); | 16687   CHECK(re->GetSource()->Equals(v8_str("foo"))); | 
| 16676   CHECK_EQ(v8::RegExp::kNone, re->GetFlags()); | 16688   CHECK_EQ(v8::RegExp::kNone, re->GetFlags()); | 
| 16677 | 16689 | 
| 16678   re = v8::RegExp::New(v8_str("bar"), | 16690   re = v8::RegExp::New(v8_str("bar"), | 
| (...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 18121 | 18133 | 
| 18122   i::Semaphore* sem_; | 18134   i::Semaphore* sem_; | 
| 18123   volatile int sem_value_; | 18135   volatile int sem_value_; | 
| 18124 }; | 18136 }; | 
| 18125 | 18137 | 
| 18126 | 18138 | 
| 18127 THREADED_TEST(SemaphoreInterruption) { | 18139 THREADED_TEST(SemaphoreInterruption) { | 
| 18128   ThreadInterruptTest().RunTest(); | 18140   ThreadInterruptTest().RunTest(); | 
| 18129 } | 18141 } | 
| 18130 #endif  // WIN32 | 18142 #endif  // WIN32 | 
| OLD | NEW | 
|---|