Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/platform-win32.cc

Issue 53047: Implement string.match in C++. (Closed)
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 308
309 // Initialize timestamp to start of epoc. 309 // Initialize timestamp to start of epoc.
310 Time::Time() { 310 Time::Time() {
311 t() = 0; 311 t() = 0;
312 } 312 }
313 313
314 314
315 // Initialize timestamp from a JavaScript timestamp. 315 // Initialize timestamp from a JavaScript timestamp.
316 Time::Time(double jstime) { 316 Time::Time(double jstime) {
317 t() = static_cast<uint64_t>(jstime) * kTimeScaler + kTimeEpoc; 317 t() = static_cast<int64_t>(jstime) * kTimeScaler + kTimeEpoc;
318 } 318 }
319 319
320 320
321 // Initialize timestamp from date/time components. 321 // Initialize timestamp from date/time components.
322 Time::Time(int year, int mon, int day, int hour, int min, int sec) { 322 Time::Time(int year, int mon, int day, int hour, int min, int sec) {
323 SYSTEMTIME st; 323 SYSTEMTIME st;
324 st.wYear = year; 324 st.wYear = year;
325 st.wMonth = mon; 325 st.wMonth = mon;
326 st.wDay = day; 326 st.wDay = day;
327 st.wHour = hour; 327 st.wHour = hour;
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 1848
1849 // Release the thread handles 1849 // Release the thread handles
1850 CloseHandle(data_->sampler_thread_); 1850 CloseHandle(data_->sampler_thread_);
1851 CloseHandle(data_->profiled_thread_); 1851 CloseHandle(data_->profiled_thread_);
1852 } 1852 }
1853 1853
1854 1854
1855 #endif // ENABLE_LOGGING_AND_PROFILING 1855 #endif // ENABLE_LOGGING_AND_PROFILING
1856 1856
1857 } } // namespace v8::internal 1857 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/regexp-macro-assembler-ia32.cc » ('j') | src/string.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698